diff options
author | Andrew Dolgov <[email protected]> | 2005-09-06 05:14:17 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-06 05:14:17 +0100 |
commit | ac43eba1ab9a352de1b06161f9d23f77d445dce8 (patch) | |
tree | e7bd2bd547ca99355594fc02cf3032f2d9a5b691 /tt-rss.js | |
parent | 5f89f7803b18d2c66a076bf7c3b9a7221dc3278f (diff) |
inputify buttons, store view modes in session cookies, disable headline toolbar initially
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 32 |
1 files changed, 25 insertions, 7 deletions
@@ -202,7 +202,7 @@ function catchupAllFeeds() { } function viewCurrentFeed(skip, subop) { - if (active_feed_id) { + if (active_feed_id ) { viewfeed(active_feed_id, skip, subop); } } @@ -231,12 +231,15 @@ function viewfeed(feed, skip, subop) { view_mode = "All Posts"; } + setCookie("ttrss_vf_vmode", view_mode); + var limitbox = document.getElementById("limitbox"); var limit; if (limitbox) { limit = limitbox.value; + setCookie("ttrss_vf_limit", limit); } else { limit = "All"; } @@ -257,6 +260,8 @@ function viewfeed(feed, skip, subop) { active_feed_id = feed; active_offset = skip; + setCookie("ttrss_vf_actfeed", feed); + if (subop == "MarkAllRead") { var feedr = document.getElementById("FEEDR-" + feed); @@ -286,12 +291,9 @@ function viewfeed(feed, skip, subop) { cleanSelected("feedsList"); feedr.className = feedr.className + "Selected"; - - var ftitle_d = document.getElementById("headlinesTitle"); - var ftitle_s = document.getElementById("FEEDN-" + feed); - - ftitle_d.innerHTML = ftitle_s.innerHTML; + disableContainerChildren("headlinesToolbar", false); + // notify(""); } @@ -303,7 +305,9 @@ function timeout() { function resetSearch() { document.getElementById("searchbox").value = ""; - viewfeed(active_feed_id, 0, ""); + if (active_feed_id) { + viewfeed(active_feed_id, 0, ""); + } } function search() { @@ -392,6 +396,8 @@ function localHotkeyHandler(keycode) { function init() { + disableContainerChildren("headlinesToolbar", true); + // IE kludge if (xmlhttp && !xmlhttp_rpc) { @@ -411,4 +417,16 @@ function init() { setTimeout("timeout()", 1800*1000); var content = document.getElementById("content"); + +// active_feed_id = getCookie("ttrss_vf_actfeed"); + + var limitbox = document.getElementById("limitbox"); + + if (getCookie("ttrss_vf_vmode")) { + var viewbox = document.getElementById("viewbox"); + viewbox.value = getCookie("ttrss_vf_vmode"); + } + } + + |