Bug 33484: Revert template change introduced in bug 22276

With the globalisation of the stateSave handling introduced by bug 22276
we can remove the localised changes to the template in branches.tt

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2023-04-11 15:03:42 +01:00 committed by Katrin Fischer
parent f69f955ff6
commit 61dcd3f759
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 4 deletions

View File

@ -654,8 +654,6 @@
</style>
<script>
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
var saved_table = localStorage.getItem("DataTables_libraries_/cgi-bin/koha/admin/branches.pl");
var updated_settings = get_columns_saved_state(saved_table, table_settings);
var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]';
$(document).ready(function() {
@ -667,7 +665,6 @@
},
'embed': [ 'smtp_server', 'library_hours' ],
'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>',
"stateSave": true,
"columnDefs": [ {
"targets": [0,1,3,4,7,10,11,12,13,14,15,16,17],
"render": function (data, type, row, meta) {
@ -874,7 +871,7 @@
"orderable": false
}
]
}, updated_settings);
}, table_settings);
[% UNLESS library %]
$("#Aform").on("submit", function( event ) {