View | Details | Raw Unified | Return to bug 41571
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-16 lines)
Lines 327-348 Link Here
327
            }
327
            }
328
        }
328
        }
329
329
330
        function selected_layout() {
331
            if (document.items.action.length) {
332
                for (i=0;i<document.items.action.length;i++){
333
                    if (document.items.action[i].checked==true){
334
                        return(document.items.action[i].value);
335
                    }
336
                }
337
            } else {
338
                if (document.items.action.checked){
339
                    return(document.items.action.value);
340
                }
341
            }
342
            alert(_("Please select at least one item."));
343
            return (-1);
344
        }
345
346
        $(document).ready(function() {
330
        $(document).ready(function() {
347
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
331
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
348
            if (has_entries){
332
            if (has_entries){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-25 / +1 lines)
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
- 

Return to bug 41571