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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-3 / +1 lines)
Lines 1218-1226 Link Here
1218
[% MACRO jsinclude BLOCK %]
1218
[% MACRO jsinclude BLOCK %]
1219
    <script>
1219
    <script>
1220
        $(document).ready(function(){
1220
        $(document).ready(function(){
1221
            /* Bootstrap doesn't support automatic targeting of tabs by location hash */
1221
            selectBsTabByHash( "abouttabs" );
1222
            var activeTab = $("[href='" + location.hash + "']");
1223
            activeTab && activeTab.tab('show');
1224
        });
1222
        });
1225
    </script>
1223
    </script>
1226
[% END %]
1224
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +1 lines)
Lines 371-377 Link Here
371
                                            <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
371
                                            <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
372
                                        [% END %]
372
                                        [% END %]
373
                                        [% IF errmsgloo.data_corrupted %]
373
                                        [% IF errmsgloo.data_corrupted %]
374
                                            <p class="problem ret_datacorrupt">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and correct all errors shown on the "System information" tab</p>
374
                                            <p class="problem ret_datacorrupt">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo_panel">about page</a> and correct all errors shown on the "System information" tab</p>
375
                                        [% END %]
375
                                        [% END %]
376
                                    [% END # /FOREACH errmsgloo %]
376
                                    [% END # /FOREACH errmsgloo %]
377
                                </div> <!-- /.dialog.dialog-alert -->
377
                                </div> <!-- /.dialog.dialog-alert -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-1 / +1 lines)
Lines 111-117 Link Here
111
        [% END %]
111
        [% END %]
112
            <div id="interlibraryloans">
112
            <div id="interlibraryloans">
113
        [% IF !backends_available || !has_branch %]
113
        [% IF !backends_available || !has_branch %]
114
            <div class="dialog message">ILL module configuration problem. Take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a></div>
114
            <div class="dialog message">ILL module configuration problem. Take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo_panel">about page</a></div>
115
        [% ELSE %]
115
        [% ELSE %]
116
                [% INCLUDE 'ill-toolbar.inc' %]
116
                [% INCLUDE 'ill-toolbar.inc' %]
117
117
(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js (-1 / +4 lines)
Lines 1-4 Link Here
1
/* global dataTablesDefaults tagsubfield */
1
/* global dataTablesDefaults tagsubfield selectBsTabByHash */
2
$(document).ready(function() {
2
$(document).ready(function() {
3
    if( tagsubfield && tagsubfield == "@"){
3
    if( tagsubfield && tagsubfield == "@"){
4
        $("#subfieldtabs a[href='#subATfield']").tab("show");
4
        $("#subfieldtabs a[href='#subATfield']").tab("show");
Lines 39-44 $(document).ready(function() { Link Here
39
        aaSorting: [],
39
        aaSorting: [],
40
        paginate: false
40
        paginate: false
41
    }));
41
    }));
42
43
    selectBsTabByHash("subfieldtabs");
44
42
});
45
});
43
46
44
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
47
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js (-6 / +2 lines)
Lines 1-4 Link Here
1
/* global borrowernumber */
1
/* global borrowernumber selectBsTabByHash */
2
$(document).ready(function() {
2
$(document).ready(function() {
3
    $("#CheckAllExports").on("click",function(){
3
    $("#CheckAllExports").on("click",function(){
4
        $(".export:visible").prop("checked", true);
4
        $(".export:visible").prop("checked", true);
Lines 91-101 $(document).ready(function() { Link Here
91
    });
91
    });
92
92
93
    /* Preselect Bootstrap tab based on location hash */
93
    /* Preselect Bootstrap tab based on location hash */
94
    var hash = window.location.hash.substring(1);
94
    selectBsTabByHash("finesholdsissues");
95
    if( hash ){
96
        var activeTab = $('a[href="#' + hash + '"]');
97
        activeTab && activeTab.tab('show');
98
    }
99
95
100
    if ( $('#clubs_panel').length ) {
96
    if ( $('#clubs_panel').length ) {
101
        $('#clubs-tab').on('click', function() {
97
        $('#clubs-tab').on('click', function() {
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +11 lines)
Lines 595-597 function buildPatronSearchQuery(term, options) { Link Here
595
    }
595
    }
596
    return q;
596
    return q;
597
}
597
}
598
- 
598
599
function selectBsTabByHash( tabs_container_id ){
600
    /* Check for location.hash in the page URL */
601
    /* If present the location hash will be used to activate the correct tab */
602
    var hash = document.location.hash;
603
    if( hash !== "" ){
604
        $('#' + tabs_container_id + ' a[href="' + hash + '"]').tab('show');
605
    } else {
606
        $('#' + tabs_container_id + ' a:first').tab('show');
607
    }
608
}

Return to bug 34115