summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-07 14:31:21 +0100
committerAndrew Dolgov <[email protected]>2005-09-07 14:31:21 +0100
commit8158c57a8e3a40338045e0b809bca42f1e703ca5 (patch)
treed47c8e8cb0132d037139c34d29c956fca9c8b318 /tt-rss.js
parent4b3dff6ed580a7c5aec8fb50467043962861e0e7 (diff)
update schema, more mysql work
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 2015797c5..1d1c793a9 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -58,16 +58,18 @@ function feedlist_callback() {
}
*/
+function checkActiveFeedId() {
-function refetch_callback() {
+ var actfeedid = frames["feeds-frame"].document.getElementById("ACTFEEDID");
- if (xmlhttp_rpc.readyState == 4) {
+ if (actfeedid) {
+ active_feed_id = actfeedid.innerHTML;
+ }
+}
- var actfeedid = frames["feeds-frame"].document.getElementById("ACTFEEDID");
+function refetch_callback() {
- if (actfeedid) {
- active_feed_id = actfeedid.innerHTML;
- }
+ if (xmlhttp_rpc.readyState == 4) {
document.title = "Tiny Tiny RSS";
notify("All feeds updated.");
@@ -253,6 +255,7 @@ function resetSearch() {
}
function search() {
+ checkActiveFeedId();
if (active_feed_id) {
viewfeed(active_feed_id, 0, "");
} else {
@@ -315,9 +318,9 @@ function init() {
updateFeedList(false, false);
document.onkeydown = hotkey_handler;
- setTimeout("timeout()", 1800*1000);
- scheduleFeedUpdate(true);
+// setTimeout("timeout()", 1800*1000);
+// scheduleFeedUpdate(true);
var content = document.getElementById("content");