From 2f8308cd492f1c0283a8b226148ae20c36e82e24 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 19 Sep 2012 17:02:14 +0200 Subject: [PATCH] A follow-up will be added though, because we understood why I had some javascript error and jonathan didn't. It's because I've plack + debug Bug 8117 follow-up: explicitely list tables to dataTable debug panel in plack adds a lot of (without any id) thus, when you call $("table").dataTable(...) there's a javacscript error because datatable can't handle the plack
! The solution has been to explicitely name the tables to dataTable (which is a good thing anyway) $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { --- .../intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt index e442c5f1ae..f8a0506ee3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt @@ -84,7 +84,7 @@ [% IF ( tab ) %] tabs.tabs('select', [% tab %]); [% END %] - $("table").dataTable($.extend(true, {}, dataTablesDefaults, { + $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ { [% IF ( dateformat == 'metric' ) %] -- 2.20.1