summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
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) {