diff options
author | Andrew Dolgov <[email protected]> | 2007-03-26 06:23:15 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-26 06:23:15 +0100 |
commit | 4049672041287a491919c01d80017c7b767c3461 (patch) | |
tree | 83c41485f54559c303e2578adb8f383647d245ab /functions.js | |
parent | cdbb6dc62652adfe754fa894720efef4758fb311 (diff) |
add persistent storage for toolbar view options, bump schema
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 62 |
1 files changed, 2 insertions, 60 deletions
diff --git a/functions.js b/functions.js index 1172a49f7..608284dc4 100644 --- a/functions.js +++ b/functions.js @@ -1502,71 +1502,13 @@ function debug(msg) { } function getInitParam(key) { - var c = getCookie("TTIP:" + key); - if (c) { - return c; - } else { - return getMainContext().init_params[key]; - } + return init_params[key]; } function storeInitParam(key, value) { - try { - init_params[key] = value; - debug("storeInitParam: " + key + " => " + value + - " (" + getInitParam("cookie_lifetime") + ")"); - if (getInitParam("cookie_lifetime") > 0) { - setCookie("TTIP:" + key, value, getInitParam("cookie_lifetime")); - } else { - setCookie("TTIP:" + key, value); - } - } catch (e) { - exception_error("storeInitParam", e); - } + debug("<b>storeInitParam is OBSOLETE: " + key + " => " + value + "</b>"); } - -/* -function storeInitParam(key, value, is_client) { - try { - if (!is_client) { - if (getMainContext().init_params[key] != value) { - debug("storeInitParam: " + key + " => " + value); - //new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" + - // param_escape(key) + "&value=" + param_escape(value)); - var f = getMainContext().document.getElementById("backReqBox"); - f.src = "backend.php?op=rpc&subop=storeParam&key=" + - param_escape(key) + "&value=" + param_escape(value); - } - } - getMainContext().init_params[key] = value; - } catch (e) { - exception_error("storeInitParam", e); - } -} */ - -/* -function storeInitParams(params, is_client) { - try { - var s = ""; - - for (k in params) { - if (getMainContext().init_params[k] != params[k]) { - s += k + "=" + params[k] + ";"; - getMainContext().init_params[k] = params[k]; - } - } - - debug("storeInitParams: " + s); - - if (!is_client) { - new Ajax.Request("backend.php?op=rpc&subop=storeParams&str=" + s); - } - } catch (e) { - exception_error("storeInitParams", e); - } -}*/ - function fatalError(code, message) { try { |