Bug 40777: Add info in the alert

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit fba31a1035)
Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2025-10-07 16:17:17 +02:00 committed by Jacob O'Mara
parent 97b502ffbd
commit 89ee54e33d
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -2381,6 +2381,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");
</script>
[% CoverImagePlugins | $raw %]
[% END # /jsinclude %]

View File

@ -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."));