diff options
author | Andrew Dolgov <[email protected]> | 2018-12-01 11:18:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-01 11:18:35 +0300 |
commit | 195180b64d679540d4303f2205fe1488ff946dd8 (patch) | |
tree | 9619444095e2d0e910c48021a04eb473c9d131db /js/prefs.js | |
parent | e720e6b628abcf860783fe59ea71711efc187d0e (diff) |
minor refactoring: normalize some function names; cleanup; etc
Diffstat (limited to 'js/prefs.js')
-rwxr-xr-x | js/prefs.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/js/prefs.js b/js/prefs.js index f7e24acda..50283efbf 100755 --- a/js/prefs.js +++ b/js/prefs.js @@ -647,7 +647,7 @@ function selectTab(id, noupdate) { function init_second_stage() { document.onkeydown = pref_hotkey_handler; - loading_set_progress(50); + setLoadingProgress(50); notify(""); let tab = getURLParam('tab'); @@ -665,7 +665,7 @@ function init_second_stage() { window.setTimeout(function() { editFeed(param) }, 100); } - setInterval(hotkey_prefix_timeout, 5*1000); + setInterval(hotkeyPrefixTimeout, 5*1000); } function init() { @@ -716,7 +716,7 @@ function init() { try { parser.parse(); - loading_set_progress(50); + setLoadingProgress(50); const clientTzOffset = new Date().getTimezoneOffset() * 60; const params = { op: "rpc", method: "sanityCheck", clientTzOffset: clientTzOffset }; @@ -750,7 +750,7 @@ function validatePrefsReset() { function pref_hotkey_handler(e) { if (e.target.nodeName == "INPUT" || e.target.nodeName == "TEXTAREA") return; - const action_name = keyevent_to_action(e); + const action_name = keyeventToAction(e); if (action_name) { switch (action_name) { @@ -1215,3 +1215,6 @@ function updateSelectedPrompt() { // no-op shim for toggleSelectedRow() } +function gotoMain() { + document.location.href = "index.php"; +} |