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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt (-11 / +12 lines)
Lines 491-518 Link Here
491
[% MACRO jsinclude BLOCK %]
491
[% MACRO jsinclude BLOCK %]
492
    [%# Add WYSIWYG editor for htmlarea system preferences %]
492
    [%# Add WYSIWYG editor for htmlarea system preferences %]
493
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
493
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
494
    [% IF ( else ) %]
494
    [% IF else && loop %]
495
        [% INCLUDE 'datatables.inc' %]
495
        [% INCLUDE 'datatables.inc' %]
496
        <script>
496
        <script>
497
            $(document).ready(function() {
497
            $(document).ready(function() {
498
               [% IF ( loop ) %]
498
               $("#sysprefst").kohaTable({
499
                   $("#sysprefst").kohaTable({
499
                   dom: '<"top pager"ilf>t',
500
                       dom: '<"top pager"ilf>t',
500
                   paging: false,
501
                       paging: false,
501
               });
502
                   });
503
               [% END %]
504
            });
502
            });
505
        </script>
503
        </script>
506
    [% END %]
504
    [% END %]
507
    <script>
505
508
        [% IF ( add_form ) %]
506
    [% IF ( add_form ) %]
507
        <script>
509
            $(document).ready(function() {
508
            $(document).ready(function() {
510
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
509
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
511
                $('.variabletype').click(function() {
510
                $('.variabletype').click(function() {
512
                    $('#preftype').attr("value",$(this).attr("id"));
511
                    $('#preftype').attr("value",$(this).attr("id"));
513
                });
512
                });
514
            });
513
            });
515
        [% END %]
514
        </script>
515
    [% END %]
516
517
    <script>
516
            // FIXME: many of these js functions appear unused
518
            // FIXME: many of these js functions appear unused
517
        function isNotNull(f,noalert) {
519
        function isNotNull(f,noalert) {
518
                if (f.value.length ==0) {
520
                if (f.value.length ==0) {
519
- 

Return to bug 41564