|
Lines 654-661
Link Here
|
| 654 |
</style> |
654 |
</style> |
| 655 |
<script> |
655 |
<script> |
| 656 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
656 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
| 657 |
var saved_table = localStorage.getItem("DataTables_libraries_/cgi-bin/koha/admin/branches.pl"); |
|
|
| 658 |
var updated_settings = get_columns_saved_state(saved_table, table_settings); |
| 659 |
var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]'; |
657 |
var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]'; |
| 660 |
|
658 |
|
| 661 |
$(document).ready(function() { |
659 |
$(document).ready(function() { |
|
Lines 667-673
Link Here
|
| 667 |
}, |
665 |
}, |
| 668 |
'embed': [ 'smtp_server', 'library_hours' ], |
666 |
'embed': [ 'smtp_server', 'library_hours' ], |
| 669 |
'emptyTable': '<div class="alert alert-info">'+_("There are no libraries defined.")+' <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">'+_("Start defining libraries")+'</a>.</div>', |
667 |
'emptyTable': '<div class="alert alert-info">'+_("There are no libraries defined.")+' <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">'+_("Start defining libraries")+'</a>.</div>', |
| 670 |
"stateSave": true, |
|
|
| 671 |
"columnDefs": [ { |
668 |
"columnDefs": [ { |
| 672 |
"targets": [0,1,3,4,7,10,11,12,13,14,15,16,17], |
669 |
"targets": [0,1,3,4,7,10,11,12,13,14,15,16,17], |
| 673 |
"render": function (data, type, row, meta) { |
670 |
"render": function (data, type, row, meta) { |
|
Lines 874-880
Link Here
|
| 874 |
"orderable": false |
871 |
"orderable": false |
| 875 |
} |
872 |
} |
| 876 |
] |
873 |
] |
| 877 |
}, updated_settings); |
874 |
}, table_settings); |
| 878 |
|
875 |
|
| 879 |
[% UNLESS library %] |
876 |
[% UNLESS library %] |
| 880 |
$("#Aform").on("submit", function( event ) { |
877 |
$("#Aform").on("submit", function( event ) { |
| 881 |
- |
|
|