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

init param API is context-free

This commit is contained in:
Andrew Dolgov
2006-05-23 07:15:49 +01:00
parent ac378ad4ec
commit 33d13e72e2
4 changed files with 39 additions and 29 deletions

View File

@@ -10,6 +10,7 @@ var _qfd_deleted_feed = 0;
var firsttime_update = true;
var last_refetch = 0;
var cookie_lifetime = 0;
var active_feed_id = 0;
var xmlhttp = Ajax.getTransport();
@@ -430,8 +431,6 @@ function init_second_stage() {
cookie_lifetime = getCookie("ttrss_cltime");
delCookie("ttrss_vf_test");
setCookie("ttrss_vf_actfeed", "");
updateFeedList(false, false);
document.onkeydown = hotkey_handler;
@@ -594,16 +593,4 @@ function fatalError(code, message) {
}
}
function getInitParam(key) {
return init_params[key];
}
function storeInitParam(key, value) {
try {
init_params[key] = value;
new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" +
param_escape(key) + "&value=" + param_escape(value));
} catch (e) {
exception_error("storeInitParam", e);
}
}