mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
migrate tt-rss.js contents to App
This commit is contained in:
11
js/prefs.js
11
js/prefs.js
@@ -65,7 +65,7 @@ const App = {
|
||||
});
|
||||
},
|
||||
initSecondStage: function() {
|
||||
document.onkeydown = this.hotkeyHandler;
|
||||
document.onkeydown = () => { App.hotkeyHandler(event) };
|
||||
Utils.setLoadingProgress(50);
|
||||
notify("");
|
||||
|
||||
@@ -111,8 +111,11 @@ const App = {
|
||||
console.log("unhandled action: " + action_name + "; keycode: " + event.which);
|
||||
}
|
||||
}
|
||||
},
|
||||
isPrefs: function() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function notify_callback2(transport, sticky) {
|
||||
notify_info(transport.responseText, sticky);
|
||||
@@ -909,10 +912,6 @@ function labelColorReset() {
|
||||
}
|
||||
}
|
||||
|
||||
function inPreferences() {
|
||||
return true;
|
||||
}
|
||||
|
||||
function editProfiles() {
|
||||
|
||||
if (dijit.byId("profileEditDlg"))
|
||||
|
||||
Reference in New Issue
Block a user