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>
This commit is contained in:
Jonathan Druart 2025-10-07 16:17:17 +02:00 committed by Lucas Gass
parent 305da27e65
commit fba31a1035
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 4 additions and 1 deletions

View File

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