|
Lines 181-210
Link Here
|
| 181 |
} |
181 |
} |
| 182 |
location.href = "/cgi-bin/koha/labels/label-print.pl?" + getstr; |
182 |
location.href = "/cgi-bin/koha/labels/label-print.pl?" + getstr; |
| 183 |
} |
183 |
} |
| 184 |
function selected_layout(op) { |
184 |
|
| 185 |
var selected = new Array; |
|
|
| 186 |
if (document.layouts.action.length) { |
| 187 |
for (i=0;i<document.layouts.action.length;i++){ |
| 188 |
if (document.layouts.action[i].checked){ |
| 189 |
selected.push(i); |
| 190 |
} |
| 191 |
}; |
| 192 |
if (selected.length == 1) { |
| 193 |
return(document.layouts.action[selected[0]].value); |
| 194 |
} |
| 195 |
else { |
| 196 |
alert(_("Please select only one %s to %s.").format("[% label_element | html %]", op)); |
| 197 |
return (-1); |
| 198 |
} |
| 199 |
} |
| 200 |
else { |
| 201 |
if (document.layouts.action.checked){ |
| 202 |
return(document.layouts.action.value); |
| 203 |
} |
| 204 |
}; |
| 205 |
alert(_("Please select a %s.").format("[% label_element | html %]")); |
| 206 |
return (-1); |
| 207 |
} |
| 208 |
$(document).ready(function(){ |
185 |
$(document).ready(function(){ |
| 209 |
$('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current"); |
186 |
$('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current"); |
| 210 |
$("#print").click(function(e){ |
187 |
$("#print").click(function(e){ |
| 211 |
- |
|
|