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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-12 / +15 lines)
Lines 48-64 Link Here
48
            selectTab( "#tab0XX_panel" );
48
            selectTab( "#tab0XX_panel" );
49
        }
49
        }
50
50
51
        $("#authoritytabs ul.sortable_field").each( (i, e) => {
51
        function initializeSortable(selector) {
52
            Sortable.create(e, {
52
            $(selector).each((i, e) => {
53
                animation: 150
53
                Sortable.create(e, {
54
            });
54
                    handle: '.handle',
55
        });
55
                    direction: 'vertical',
56
56
                    animation: 150,
57
        $("#authoritytabs ul.sortable_subfield").each( (i, e) => {
57
                });
58
            Sortable.create(e, {
58
             });
59
                animation: 150
59
        }
60
            });
60
        initializeSortable("#authoritytabs ul.sortable_field");
61
        });
61
        initializeSortable("#authoritytabs ul.sortable_subfield");
62
62
63
        Sticky = $("#toolbar");
63
        Sticky = $("#toolbar");
64
        Sticky.hcSticky({
64
        Sticky.hcSticky({
Lines 614-619 Link Here
614
614
615
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
615
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
616
                                                    [% UNLESS hide_marc %]
616
                                                    [% UNLESS hide_marc %]
617
                                                        [% IF ( innerloo.repeatable ) %]
618
                                                        <span class="handle">&#xf58e;</span>
619
                                                        [% END %]
617
                                                        [% IF advancedMARCEditor %]
620
                                                        [% IF advancedMARCEditor %]
618
                                                            <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'">[% innerloo.tag | html %]</a>
621
                                                            <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'">[% innerloo.tag | html %]</a>
619
                                                        [% ELSE %]
622
                                                        [% ELSE %]
Lines 696-701 Link Here
696
699
697
                                                            [% UNLESS hide_marc %]
700
                                                            [% UNLESS hide_marc %]
698
                                                                <div class="subfieldcode">
701
                                                                <div class="subfieldcode">
702
                                                                    <span class="handle">&#xf58e;</span>
699
                                                                    <input type="text"
703
                                                                    <input type="text"
700
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
704
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
701
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
705
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
702
- 

Return to bug 36388