summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 15:50:06 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 15:50:06 +0300
commit3268364693814ae89df5d2c2d090108b182e48eb (patch)
treebd57ae9b8771814577eb4498a7432070370d56dd /js/App.js
parent3d11c61f326ef133427f6f37de4429e879c725f2 (diff)
more dialog-related cleanup
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js19
1 files changed, 4 insertions, 15 deletions
diff --git a/js/App.js b/js/App.js
index cd96dfe2a..8ea6c70b3 100644
--- a/js/App.js
+++ b/js/App.js
@@ -99,12 +99,12 @@ const App = {
});
if (callback) {
- link.onload = function () {
+ link.onload = function() {
document.querySelector("body").removeClassName("css_loading");
callback();
};
- link.onerror = function(event) {
+ link.onerror = function() {
alert("Fatal error while loading application stylesheet: " + link.getAttribute("href"));
}
}
@@ -336,15 +336,6 @@ const App = {
dialog = new fox.SingleUseDialog({
title: title,
id: 'infoBox',
- onCancel: function () {
- return true;
- },
- onExecute: function () {
- return true;
- },
- onClose: function () {
- return true;
- },
content: content
});
} else {
@@ -472,8 +463,6 @@ const App = {
backendSanityCallback: function(transport) {
const reply = JSON.parse(transport.responseText);
- /* global ERRORS */
-
if (!reply) {
this.Error.fatal(ERRORS[3], {info: transport.responseText});
return;
@@ -677,8 +666,8 @@ const App = {
},
initSecondStage: function() {
- document.onkeydown = (event) => { return this.hotkeyHandler(event) };
- document.onkeypress = (event) => { return this.hotkeyHandler(event) };
+ document.onkeydown = (event) => this.hotkeyHandler(event);
+ document.onkeypress = (event) => this.hotkeyHandler(event);
if (this.is_prefs) {