summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-24 15:25:06 +0300
committerAndrew Dolgov <[email protected]>2009-12-24 15:25:06 +0300
commit57937c42b99d94a4046986bbfb59fdf8d765408a (patch)
tree7e2ea1b319101915806c36ea76b84c4022bceed3 /tt-rss.js
parent44258fa967a8804a80d84ebd845a8668c18ca890 (diff)
obsolete cookie storage for collapsed status of feedlist and special categories (bump schema)
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/tt-rss.js b/tt-rss.js
index af5c6fae0..86b4e5644 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -27,7 +27,6 @@ function activeFeedIsCat() {
}
function getActiveFeedId() {
-// return getCookie("ttrss_vf_actfeed");
try {
debug("gAFID: " + _active_feed_id);
return _active_feed_id;
@@ -37,7 +36,6 @@ function getActiveFeedId() {
}
function setActiveFeedId(id, is_cat) {
-// return setCookie("ttrss_vf_actfeed", id);
try {
debug("sAFID(" + id + ", " + is_cat + ")");
_active_feed_id = id;
@@ -372,9 +370,9 @@ function genericSanityCheck() {
// if (!Ajax.getTransport()) fatalError(1);
- setCookie("ttrss_vf_test", "TEST");
+ setCookie("ttrss_test", "TEST");
- if (getCookie("ttrss_vf_test") != "TEST") {
+ if (getCookie("ttrss_test") != "TEST") {
fatalError(2);
}
@@ -504,7 +502,7 @@ function init_second_stage() {
try {
- delCookie("ttrss_vf_test");
+ delCookie("ttrss_test");
// document.onresize = resize_headlines;
window.onresize=resize_headlines;
@@ -943,7 +941,9 @@ function collapse_feedlist() {
if (fc) fc.style.left = fl.offsetWidth + 40 + "px";
}
- setCookie("ttrss_vf_fclps", "0");
+ query = "backend.php?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=false";
+
+ new Ajax.Request(query);
} else {
Element.hide(fl);
@@ -965,7 +965,10 @@ function collapse_feedlist() {
}
- setCookie("ttrss_vf_fclps", "1");
+ query = "backend.php?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=true";
+
+ new Ajax.Request(query);
+
}
} catch (e) {
exception_error("toggle_feedlist", e);