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:
parent
305da27e65
commit
fba31a1035
|
|
@ -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 %]
|
||||
|
|
|
|||
|
|
@ -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."));
|
||||
|
|
|
|||
Loading…
Reference in New Issue