From d59eab0cd2edd535226f78114c877b95dcb6529d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Oct 2025 16:17:17 +0200 Subject: [PATCH] Bug 40777: Add info in the alert Signed-off-by: David Nind Signed-off-by: Victor Grousset/tuxayo --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 ++ koha-tmpl/intranet-tmpl/prog/js/datatables.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 9fec17d92e..47958a9663 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2419,6 +2419,8 @@ $(".delete-comment").on("click", function(){ return confirm( _("Are you sure you want to delete this comment?") ); }); + + specific_dt_errors = _("Have a look at the 'Audit' button in the toolbar"); [% CoverImagePlugins | $raw %] [% END # /jsinclude %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 6ebe226e18..158549b977 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -407,6 +407,7 @@ function filterDataTable(table, column, term) { } } +let specific_dt_errors = ""; jQuery.fn.dataTable.ext.errMode = function (settings, note, message) { if (settings && settings.jqXHR) { console.log( @@ -427,7 +428,7 @@ jQuery.fn.dataTable.ext.errMode = function (settings, note, message) { .map(m => m.message) .join("\n") : "" - ) + ) + specific_dt_errors ); } else { alert(__("Something went wrong when loading the table.")); -- 2.52.0