mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 16:05:56 +00:00
more dialog-related cleanup
This commit is contained in:
19
js/App.js
19
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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user