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 1216-1224 Link Here
1216
[% MACRO jsinclude BLOCK %]
1216
[% MACRO jsinclude BLOCK %]
1217
    <script>
1217
    <script>
1218
        $(document).ready(function(){
1218
        $(document).ready(function(){
1219
            /* Bootstrap doesn't support automatic targeting of tabs by location hash */
1219
            selectBsTabByHash( "abouttabs" );
1220
            var activeTab = $("[href='" + location.hash + "']");
1221
            activeTab && activeTab.tab('show');
1222
        });
1220
        });
1223
    </script>
1221
    </script>
1224
[% END %]
1222
[% 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 591-593 function buildPatronSearchQuery(term, options) { Link Here
591
    }
591
    }
592
    return q;
592
    return q;
593
}
593
}
594
- 
594
595
function selectBsTabByHash( tabs_container_id ){
596
    /* Check for location.hash in the page URL */
597
    /* If present the location hash will be used to activate the correct tab */
598
    var hash = document.location.hash;
599
    if( hash !== "" ){
600
        $('#' + tabs_container_id + ' a[href="' + hash + '"]').tab('show');
601
    } else {
602
        $('#' + tabs_container_id + ' a:first').tab('show');
603
    }
604
}

Return to bug 34115