1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:35:56 +00:00

minor refactoring: normalize some function names; cleanup; etc

This commit is contained in:
Andrew Dolgov
2018-12-01 11:18:35 +03:00
parent e720e6b628
commit 195180b64d
8 changed files with 89 additions and 92 deletions

View File

@@ -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";
}