|
Lines 1-10
Link Here
|
| 1 |
$(document).ready(function() { |
|
|
| 2 |
$("table.preferences").tablesorter({ |
| 3 |
sortList: [[0,0]], |
| 4 |
headers: { 1: { sorter:false}} |
| 5 |
}); |
| 6 |
}); |
| 7 |
|
| 8 |
// We can assume 'KOHA' exists, as we depend on KOHA.AJAX |
1 |
// We can assume 'KOHA' exists, as we depend on KOHA.AJAX |
| 9 |
|
2 |
|
| 10 |
KOHA.Preferences = { |
3 |
KOHA.Preferences = { |
|
Lines 40-45
KOHA.Preferences = {
Link Here
|
| 40 |
}; |
33 |
}; |
| 41 |
|
34 |
|
| 42 |
$( document ).ready( function () { |
35 |
$( document ).ready( function () { |
|
|
36 |
|
| 37 |
$("table.preferences").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 38 |
"sDom": 't', |
| 39 |
"aoColumnDefs": [ |
| 40 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false } |
| 41 |
], |
| 42 |
"bPaginate": false |
| 43 |
})); |
| 44 |
|
| 43 |
function mark_modified() { |
45 |
function mark_modified() { |
| 44 |
$( this.form ).find( '.save-all' ).removeAttr( 'disabled' ); |
46 |
$( this.form ).find( '.save-all' ).removeAttr( 'disabled' ); |
| 45 |
$( this ).addClass( 'modified' ); |
47 |
$( this ).addClass( 'modified' ); |
|
Lines 96-106
$( document ).ready( function () {
Link Here
|
| 96 |
$(collapsible).toggle( |
98 |
$(collapsible).toggle( |
| 97 |
function () { |
99 |
function () { |
| 98 |
$(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND); |
100 |
$(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND); |
| 99 |
$(this).next("table").hide(); |
101 |
$(this).next("div").hide(); |
| 100 |
}, |
102 |
}, |
| 101 |
function () { |
103 |
function () { |
| 102 |
$(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE); |
104 |
$(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE); |
| 103 |
$(this).next("table").show(); |
105 |
$(this).next("div").show(); |
| 104 |
} |
106 |
} |
| 105 |
); |
107 |
); |
| 106 |
|
108 |
|