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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-2 / +4 lines)
Lines 318-323 Link Here
318
[% MACRO jsinclude BLOCK %]
318
[% MACRO jsinclude BLOCK %]
319
    [% Asset.js("js/admin-menu.js") | $raw %]
319
    [% Asset.js("js/admin-menu.js") | $raw %]
320
    [% INCLUDE 'datatables.inc' %]
320
    [% INCLUDE 'datatables.inc' %]
321
    <script>
322
        var categories = [% To.json( categories ) | $raw %];
323
    </script>
324
321
    <script>
325
    <script>
322
        $(document).ready(function(){
326
        $(document).ready(function(){
323
327
Lines 491-497 Link Here
491
              }
495
              }
492
            });
496
            });
493
497
494
            var categories = [% To.json( categories ) | $raw %];
495
            // Add * => * to this array of objects, and *reduce* it to one object
498
            // Add * => * to this array of objects, and *reduce* it to one object
496
            // Note: This allows displaying a sorted list of categories later, but we still depend on an object!
499
            // Note: This allows displaying a sorted list of categories later, but we still depend on an object!
497
            categories.unshift({ categorycode: '*', description: '*'});
500
            categories.unshift({ categorycode: '*', description: '*'});
498
- 

Return to bug 41564