From bfbbf7db9859bbdd20c2f629d8333a9519152163 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 --- 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 e60d7f494a4..62a70b071e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2382,6 +2382,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 3af04d2a160..7a42606c4bf 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.34.1