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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js (-5 / +9 lines)
Lines 1-7 Link Here
1
$(document).ready(function() {
1
$(document).ready(function() {
2
    // Don't load holds table unless it is clicked on
3
    var holdsTable;
2
    var holdsTable;
4
    $("#holds-tab").click( function() {
3
4
    // Don't load holds table unless it is clicked on
5
    $("#holds-tab").on( "click", function(){ load_holds_table() } );
6
7
    // If the holds tab is preselected on load, we need to load the table
8
    if ( $("#holds-tab").parent().hasClass('ui-state-active') ) { load_holds_table() }
9
10
    function load_holds_table() {
5
        if ( ! holdsTable ) {
11
        if ( ! holdsTable ) {
6
            holdsTable = $("#holds-table").dataTable({
12
            holdsTable = $("#holds-table").dataTable({
7
                "bAutoWidth": false,
13
                "bAutoWidth": false,
Lines 127-132 $(document).ready(function() { Link Here
127
                });
133
                });
128
            }
134
            }
129
        }
135
        }
130
    });
136
    }
131
132
});
137
});
133
- 

Return to bug 13670