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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-9 / +10 lines)
Lines 21-37 Link Here
21
    });
21
    });
22
    var Sticky;
22
    var Sticky;
23
    $(document).ready(function() {
23
    $(document).ready(function() {
24
        var tabs = $('#authoritytabs').tabs().bind('show.ui-tabs', function(e, ui) {
24
        var tabs = $('#authoritytabs').tabs({
25
            $("#"+ui.panel.id+" input:eq(0)").focus();
25
            activate: function(e, ui) {
26
        });
26
                $("#"+ $(ui.newPanel).attr("id") + " input:eq(0)").focus();
27
            }
28
         });
27
29
28
        $( "ul.sortable_field", tabs ).sortable();
30
        /* On page load, check for location.hash in the page URL */
29
        $( "ul.sortable_subfield", tabs ).sortable();
31
        var hash = location.hash;
32
        var hashPieces = hash.split('?');
33
        var activeTab = $("[href='" + hashPieces[0] + "']");
34
        selectTab(activeTab);
30
35
31
        [% IF tab %]
32
            link = $("a[href='#[% tab | html %]']");
33
            selectTab( link );
34
        [% END %]
35
        $( "ul.sortable_field", tabs ).sortable();
36
        $( "ul.sortable_field", tabs ).sortable();
36
        $( "ul.sortable_subfield", tabs ).sortable();
37
        $( "ul.sortable_subfield", tabs ).sortable();
37
        Sticky = $("#toolbar");
38
        Sticky = $("#toolbar");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-1 / +8 lines)
Lines 133-138 Link Here
133
                $("#authoritiestabs a:first").tab("show");
133
                $("#authoritiestabs a:first").tab("show");
134
            }
134
            }
135
135
136
            var editAuth = $("#editAuth");
137
            var editAuthLink = editAuth.attr("href");
138
139
            $("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
140
                var newTabId = $(this).attr("href");
141
                editAuth.attr("href", editAuthLink + newTabId );
142
            });
143
136
            [% IF ( displayhierarchy ) %]
144
            [% IF ( displayhierarchy ) %]
137
                $('#hierarchies').jstree({
145
                $('#hierarchies').jstree({
138
                    "types" : {
146
                    "types" : {
139
- 

Return to bug 30422