Bug 41571: (follow-up) Remove unused function
The selected_layout function is defined but never called. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
a158a2fcc7
commit
5e864d613e
|
|
@ -327,22 +327,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
function selected_layout() {
|
||||
if (document.items.action.length) {
|
||||
for (i=0;i<document.items.action.length;i++){
|
||||
if (document.items.action[i].checked==true){
|
||||
return(document.items.action[i].value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (document.items.action.checked){
|
||||
return(document.items.action.value);
|
||||
}
|
||||
}
|
||||
alert(_("Please select at least one item."));
|
||||
return (-1);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
|
||||
if (has_entries){
|
||||
|
|
|
|||
|
|
@ -181,30 +181,7 @@
|
|||
}
|
||||
location.href = "/cgi-bin/koha/labels/label-print.pl?" + getstr;
|
||||
}
|
||||
function selected_layout(op) {
|
||||
var selected = new Array;
|
||||
if (document.layouts.action.length) {
|
||||
for (i=0;i<document.layouts.action.length;i++){
|
||||
if (document.layouts.action[i].checked){
|
||||
selected.push(i);
|
||||
}
|
||||
};
|
||||
if (selected.length == 1) {
|
||||
return(document.layouts.action[selected[0]].value);
|
||||
}
|
||||
else {
|
||||
alert(_("Please select only one %s to %s.").format("[% label_element | html %]", op));
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (document.layouts.action.checked){
|
||||
return(document.layouts.action.value);
|
||||
}
|
||||
};
|
||||
alert(_("Please select a %s.").format("[% label_element | html %]"));
|
||||
return (-1);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
|
||||
$("#print").click(function(e){
|
||||
|
|
|
|||
Loading…
Reference in New Issue