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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-11 / +6 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
        initializeSortable("#authoritytabs ul.sortable_field");
52
            Sortable.create(e, {
52
        initializeSortable("#authoritytabs ul.sortable_subfield");
53
                animation: 150
54
            });
55
        });
56
57
        $("#authoritytabs ul.sortable_subfield").each( (i, e) => {
58
            Sortable.create(e, {
59
                animation: 150
60
            });
61
        });
62
53
63
        Sticky = $("#toolbar");
54
        Sticky = $("#toolbar");
64
        Sticky.hcSticky({
55
        Sticky.hcSticky({
Lines 614-619 Link Here
614
605
615
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
606
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
616
                                                    [% UNLESS hide_marc %]
607
                                                    [% UNLESS hide_marc %]
608
                                                        [% IF ( innerloo.repeatable ) %]
609
                                                        <span class="handle">&#xf58e;</span>
610
                                                        [% END %]
617
                                                        [% IF advancedMARCEditor %]
611
                                                        [% 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>
612
                                                            <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 %]
613
                                                        [% ELSE %]
Lines 696-701 Link Here
696
690
697
                                                            [% UNLESS hide_marc %]
691
                                                            [% UNLESS hide_marc %]
698
                                                                <div class="subfieldcode">
692
                                                                <div class="subfieldcode">
693
                                                                    <span class="handle">&#xf58e;</span>
699
                                                                    <input type="text"
694
                                                                    <input type="text"
700
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
695
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
701
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
696
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-9 lines)
Lines 78-92 Link Here
78
            selectTab( "#tab0XX_panel" );
78
            selectTab( "#tab0XX_panel" );
79
        }
79
        }
80
80
81
        function initializeSortable(selector) {
82
            $(selector).each((i, e) => {
83
                Sortable.create(e, {
84
                    handle: '.handle',
85
                    direction: 'vertical',
86
                    animation: 150,
87
                });
88
            });
89
        }
90
        initializeSortable("#addbibliotabs ul.sortable_field");
81
        initializeSortable("#addbibliotabs ul.sortable_field");
91
        initializeSortable("#addbibliotabs ul.sortable_subfield");
82
        initializeSortable("#addbibliotabs ul.sortable_subfield");
92
83
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +10 lines)
Lines 603-608 function CheckImportantSubfields(p){ Link Here
603
    return total;
603
    return total;
604
}
604
}
605
605
606
function initializeSortable(selector) {
607
    $(selector).each((i, e) => {
608
        Sortable.create(e, {
609
            handle: '.handle',
610
            direction: 'vertical',
611
            animation: 150,
612
        });
613
    });
614
}
615
606
$(document).ready(function() {
616
$(document).ready(function() {
607
    $("input.input_marceditor, input.indicator").addClass('noEnterSubmit');
617
    $("input.input_marceditor, input.indicator").addClass('noEnterSubmit');
608
    $(document).ajaxSuccess(function() {
618
    $(document).ajaxSuccess(function() {
609
- 

Return to bug 36388