mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Prevent appearance of a popup for a short time after deletion of an element on firefox
Related to issue #258
This commit is contained in:
parent
6443d8e2bf
commit
8bccab258a
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ class ErrorHandlerHelper {
|
|||
return;
|
||||
}
|
||||
|
||||
//Skip 404 errors, on admin pages (as this causes a popup on deletion in firefox)
|
||||
if (response.status == 404 && event.target.id === 'admin-content-frame') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(!response.ok) {
|
||||
response.text().then(responseHTML => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue