1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 16:45:55 +00:00

js-ification: start on some common dialogs

This commit is contained in:
Andrew Dolgov
2018-12-01 18:25:32 +03:00
parent 44d3aedd38
commit 4bed9be57d
7 changed files with 399 additions and 403 deletions

View File

@@ -49,7 +49,7 @@ const App = {
try {
parser.parse();
setLoadingProgress(50);
Utils.setLoadingProgress(50);
const clientTzOffset = new Date().getTimezoneOffset() * 60;
const params = {op: "rpc", method: "sanityCheck", clientTzOffset: clientTzOffset};
@@ -66,7 +66,7 @@ const App = {
},
initSecondStage: function() {
document.onkeydown = this.hotkeyHandler;
setLoadingProgress(50);
Utils.setLoadingProgress(50);
notify("");
let tab = getURLParam('tab');
@@ -91,12 +91,12 @@ const App = {
hotkeyHandler: function (event) {
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") return;
const action_name = keyeventToAction(event);
const action_name = Utils.keyeventToAction(event);
if (action_name) {
switch (action_name) {
case "feed_subscribe":
quickAddFeed();
CommonDialogs.quickAddFeed();
return false;
case "create_label":
addLabel();