From 7a98105960dcbb53b4a221e2337ac7d1c955bd92 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Dec 2018 13:18:38 +0300 Subject: remove old fatalError(), move everything to App.Error update exception dialog css --- js/common.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'js/common.js') diff --git a/js/common.js b/js/common.js index 17d1fe444..e93087eb4 100755 --- a/js/common.js +++ b/js/common.js @@ -246,51 +246,6 @@ function displayIfChecked(checkbox, elemId) { } } -function fatalError(code, msg, ext_info) { - if (code == 6) { - window.location.href = "index.php"; - } else if (code == 5) { - window.location.href = "public.php?op=dbupdate"; - } else { - - if (msg == "") msg = "Unknown error"; - - if (ext_info) { - if (ext_info.responseText) { - ext_info = ext_info.responseText; - } - } - - /* global ERRORS */ - if (ERRORS && ERRORS[code] && !msg) { - msg = ERRORS[code]; - } - - let content = `
Error code: ${code}
-

${msg}

`; - - if (ext_info) { - content = content + `
Additional information:
- `; - } - - content += `
-
`; - - const dialog = new dijit.Dialog({ - title: "Fatal error", - style: "width: 600px", - content: content}); - - dialog.show(); - - } - - return false; - -} - /* function strip_tags(s) { return s.replace(/<\/?[^>]+(>|$)/g, ""); } */ -- cgit v1.2.3