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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js (-5 / +8 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 ( $("#holds-tab").parent().hasClass('ui-state-active') ) { load_holds_table() }
8
9
	function load_holds_table() {
5
        if ( ! holdsTable ) {
10
        if ( ! holdsTable ) {
6
            holdsTable = $("#holds-table").dataTable({
11
            holdsTable = $("#holds-table").dataTable({
7
                "bAutoWidth": false,
12
                "bAutoWidth": false,
Lines 127-132 $(document).ready(function() { Link Here
127
                });
132
                });
128
            }
133
            }
129
        }
134
        }
130
    });
135
    }
131
132
});
136
});
133
- 

Return to bug 13670