]>
Commit | Line | Data |
---|---|---|
1cd17194 AD |
1 | /* |
2 | This program is Copyright (c) 2003-2005 Andrew Dolgov <cthulhoo@gmail.com> | |
3 | Licensed under GPL v.2 or (at your preference) any later version. | |
4 | */ | |
5 | ||
6 | var xmlhttp = false; | |
525116d4 | 7 | var xmlhttp_rpc = false; |
c3a8d71a | 8 | var xmlhttp_view = false; |
1cd17194 | 9 | |
76798ff3 | 10 | var total_unread = 0; |
525116d4 | 11 | var first_run = true; |
76798ff3 | 12 | |
9cfc649a AD |
13 | var active_post_id = false; |
14 | var active_feed_id = false; | |
c3a8d71a AD |
15 | var active_offset = false; |
16 | ||
17 | var total_feed_entries = false; | |
18 | ||
19 | var _viewfeed_autoselect_first = false; | |
20 | var _viewfeed_autoselect_last = false; | |
9cfc649a | 21 | |
caa4e57f AD |
22 | var _update_ids; |
23 | var _update_num_ids; | |
24 | ||
c374a3fe AD |
25 | var search_query = ""; |
26 | ||
1cd17194 AD |
27 | /*@cc_on @*/ |
28 | /*@if (@_jscript_version >= 5) | |
29 | // JScript gives us Conditional compilation, we can cope with old IE versions. | |
30 | // and security blocked creation of the objects. | |
31 | try { | |
32 | xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); | |
33 | } catch (e) { | |
34 | try { | |
35 | xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); | |
508a81e1 | 36 | xmlhttp_rpc = new ActiveXObject("Microsoft.XMLHTTP"); |
c3a8d71a | 37 | xmlhttp_view = new ActiveXObject("Microsoft.XMLHTTP"); |
1cd17194 AD |
38 | } catch (E) { |
39 | xmlhttp = false; | |
508a81e1 | 40 | xmlhttp_rpc = false; |
c3a8d71a | 41 | xmlhttp_view = false; |
1cd17194 AD |
42 | } |
43 | } | |
44 | @end @*/ | |
45 | ||
46 | if (!xmlhttp && typeof XMLHttpRequest!='undefined') { | |
47 | xmlhttp = new XMLHttpRequest(); | |
525116d4 | 48 | xmlhttp_rpc = new XMLHttpRequest(); |
c3a8d71a | 49 | xmlhttp_view = new XMLHttpRequest(); |
1cd17194 AD |
50 | } |
51 | ||
1cd17194 | 52 | function feedlist_callback() { |
d76a3b03 | 53 | var container = document.getElementById('feeds'); |
1cd17194 | 54 | if (xmlhttp.readyState == 4) { |
d76a3b03 | 55 | container.innerHTML=xmlhttp.responseText; |
76798ff3 | 56 | |
525116d4 | 57 | if (first_run) { |
cb246176 | 58 | scheduleFeedUpdate(false); |
525116d4 AD |
59 | first_run = false; |
60 | } else { | |
61 | notify(""); | |
c0e5a40e AD |
62 | } |
63 | } | |
1cd17194 AD |
64 | } |
65 | ||
caa4e57f AD |
66 | function feed_update_callback() { |
67 | if (xmlhttp_rpc.readyState == 4) { | |
68 | var result = xmlhttp_rpc.responseText; | |
69 | notify(_update_ids); | |
70 | updateFeed(_update_ids.shift()); | |
71 | } | |
72 | } | |
73 | ||
1cd17194 | 74 | function viewfeed_callback() { |
d76a3b03 | 75 | var container = document.getElementById('headlines'); |
1cd17194 | 76 | if (xmlhttp.readyState == 4) { |
d76a3b03 | 77 | container.innerHTML = xmlhttp.responseText; |
a1a8a2be AD |
78 | |
79 | var factive = document.getElementById("FACTIVE"); | |
80 | var funread = document.getElementById("FUNREAD"); | |
81 | var ftotal = document.getElementById("FTOTAL"); | |
82 | ||
c3a8d71a AD |
83 | if (_viewfeed_autoselect_first == true) { |
84 | _viewfeed_autoselect_first = false; | |
85 | view(getFirstVisibleHeadlineId(), active_feed_id); | |
86 | } | |
87 | ||
88 | if (_viewfeed_autoselect_last == true) { | |
89 | _viewfeed_autoselect_last = false; | |
90 | view(getLastVisibleHeadlineId(), active_feed_id); | |
91 | } | |
92 | ||
a1a8a2be AD |
93 | if (ftotal && factive && funread) { |
94 | var feed_id = factive.innerHTML; | |
95 | ||
96 | var feedr = document.getElementById("FEEDR-" + feed_id); | |
97 | var feedt = document.getElementById("FEEDT-" + feed_id); | |
98 | var feedu = document.getElementById("FEEDU-" + feed_id); | |
99 | ||
100 | feedt.innerHTML = ftotal.innerHTML; | |
101 | feedu.innerHTML = funread.innerHTML; | |
102 | ||
c3a8d71a AD |
103 | total_feed_entries = ftotal.innerHTML; |
104 | ||
a1a8a2be AD |
105 | if (feedu.innerHTML > 0 && !feedr.className.match("Unread")) { |
106 | feedr.className = feedr.className + "Unread"; | |
107 | } else if (feedu.innerHTML <= 0) { | |
108 | feedr.className = feedr.className.replace("Unread", ""); | |
109 | } | |
110 | ||
a3ee2a38 AD |
111 | cleanSelected("feedsList"); |
112 | ||
113 | feedr.className = feedr.className + "Selected"; | |
a1a8a2be | 114 | } |
1c37c607 | 115 | |
c374a3fe | 116 | var searchbox = document.getElementById("searchbox"); |
c374a3fe AD |
117 | searchbox.value = search_query; |
118 | ||
b5daec98 AD |
119 | markHeadline(active_post_id); |
120 | ||
1c37c607 AD |
121 | notify(""); |
122 | ||
123 | } | |
1cd17194 AD |
124 | } |
125 | ||
126 | function view_callback() { | |
d76a3b03 | 127 | var container = document.getElementById('content'); |
c3a8d71a AD |
128 | if (xmlhttp_view.readyState == 4) { |
129 | container.innerHTML=xmlhttp_view.responseText; | |
b10e1550 | 130 | markHeadline(active_post_id); |
1cd17194 AD |
131 | } |
132 | } | |
133 | ||
525116d4 | 134 | function refetch_callback() { |
c0e5a40e | 135 | |
525116d4 | 136 | if (xmlhttp_rpc.readyState == 4) { |
c3b81db0 | 137 | notify("All feeds updated"); |
c3b81db0 | 138 | var container = document.getElementById('feeds'); |
c3b81db0 | 139 | container.innerHTML = xmlhttp_rpc.responseText; |
55193822 | 140 | document.title = "Tiny Tiny RSS"; |
c0e5a40e | 141 | } |
525116d4 AD |
142 | } |
143 | ||
caa4e57f AD |
144 | function updateFeed(feed_id) { |
145 | ||
146 | var query_str = "backend.php?op=rpc&subop=updateFeed&feed=" + feed_id; | |
147 | ||
148 | if (xmlhttp_ready(xmlhttp_rpc)) { | |
149 | xmlhttp_rpc.open("GET", query_str, true); | |
150 | xmlhttp_rpc.onreadystatechange=feed_update_callback; | |
151 | xmlhttp_rpc.send(null); | |
152 | } else { | |
153 | printLockingError(); | |
154 | } | |
155 | ||
156 | } | |
157 | ||
158 | function scheduleSepFeedUpdate(force) { | |
159 | notify("Updating feeds in background (M2)..."); | |
160 | ||
161 | _update_ids = getFeedIds(); | |
162 | _update_num_ids = _update_ids.length; | |
163 | ||
164 | updateFeed(_update_ids.pop()); | |
165 | ||
166 | } | |
167 | ||
cb246176 | 168 | function scheduleFeedUpdate(force) { |
525116d4 AD |
169 | |
170 | notify("Updating feeds in background..."); | |
171 | ||
55193822 AD |
172 | document.title = "Tiny Tiny RSS - Updating..."; |
173 | ||
cb246176 AD |
174 | var query_str = "backend.php?op=rpc&subop="; |
175 | ||
176 | if (force) { | |
c3b81db0 | 177 | query_str = query_str + "forceUpdateAllFeeds"; |
cb246176 | 178 | } else { |
c3b81db0 | 179 | query_str = query_str + "updateAllFeeds"; |
cb246176 | 180 | } |
525116d4 | 181 | |
c0e5a40e | 182 | if (xmlhttp_ready(xmlhttp_rpc)) { |
525116d4 AD |
183 | xmlhttp_rpc.open("GET", query_str, true); |
184 | xmlhttp_rpc.onreadystatechange=refetch_callback; | |
185 | xmlhttp_rpc.send(null); | |
186 | } else { | |
187 | printLockingError(); | |
c0e5a40e | 188 | } |
525116d4 | 189 | } |
1cd17194 | 190 | |
525116d4 | 191 | function updateFeedList(silent, fetch) { |
c0e5a40e | 192 | |
525116d4 | 193 | if (silent != true) { |
11c2f3fa | 194 | notify("Loading feed list..."); |
40d13c28 | 195 | } |
82baad4a | 196 | |
331900c6 AD |
197 | var query_str = "backend.php?op=feeds"; |
198 | ||
199 | if (fetch) query_str = query_str + "&fetch=yes"; | |
200 | ||
c0e5a40e | 201 | if (xmlhttp_ready(xmlhttp)) { |
076682aa AD |
202 | xmlhttp.open("GET", query_str, true); |
203 | xmlhttp.onreadystatechange=feedlist_callback; | |
204 | xmlhttp.send(null); | |
205 | } else { | |
a234aee5 | 206 | printLockingError(); |
076682aa | 207 | } |
1cd17194 AD |
208 | } |
209 | ||
175847de AD |
210 | function catchupPage(feed) { |
211 | ||
c0e5a40e | 212 | if (!xmlhttp_ready(xmlhttp)) { |
a234aee5 | 213 | printLockingError(); |
076682aa AD |
214 | return |
215 | } | |
216 | ||
175847de AD |
217 | var content = document.getElementById("headlinesList"); |
218 | ||
219 | var rows = new Array(); | |
220 | ||
221 | for (i = 0; i < content.rows.length; i++) { | |
222 | var row_id = content.rows[i].id.replace("RROW-", ""); | |
223 | if (row_id.length > 0) { | |
cb0bd8bd AD |
224 | if (content.rows[i].className.match("Unread")) { |
225 | rows.push(row_id); | |
226 | content.rows[i].className = content.rows[i].className.replace("Unread", ""); | |
227 | } | |
bf66b95b AD |
228 | |
229 | var upd_img_pic = document.getElementById("FUPDPIC-" + row_id); | |
230 | if (upd_img_pic) { | |
231 | upd_img_pic.innerHTML = ""; | |
232 | } | |
175847de AD |
233 | } |
234 | } | |
235 | ||
cb0bd8bd | 236 | if (rows.length > 0) { |
175847de | 237 | |
cb0bd8bd AD |
238 | var feedr = document.getElementById("FEEDR-" + feed); |
239 | var feedu = document.getElementById("FEEDU-" + feed); | |
240 | ||
241 | feedu.innerHTML = feedu.innerHTML - rows.length; | |
242 | ||
243 | if (feedu.innerHTML > 0 && !feedr.className.match("Unread")) { | |
244 | feedr.className = feedr.className + "Unread"; | |
245 | } else if (feedu.innerHTML <= 0) { | |
246 | feedr.className = feedr.className.replace("Unread", ""); | |
247 | } | |
248 | ||
249 | var query_str = "backend.php?op=rpc&subop=catchupPage&ids=" + | |
250 | param_escape(rows.toString()); | |
251 | ||
252 | notify("Marking this page as read..."); | |
e1123aee AD |
253 | |
254 | var button = document.getElementById("btnCatchupPage"); | |
255 | ||
40789bbf AD |
256 | if (button) { |
257 | button.className = "disabledButton"; | |
258 | button.href = ""; | |
259 | } | |
cb0bd8bd AD |
260 | |
261 | xmlhttp.open("GET", query_str, true); | |
262 | xmlhttp.onreadystatechange=notify_callback; | |
263 | xmlhttp.send(null); | |
175847de | 264 | |
cb0bd8bd AD |
265 | } else { |
266 | notify("No unread items on this page."); | |
175847de | 267 | |
cb0bd8bd | 268 | } |
175847de AD |
269 | } |
270 | ||
476cac42 | 271 | function catchupAllFeeds() { |
076682aa | 272 | |
c0e5a40e | 273 | if (!xmlhttp_ready(xmlhttp)) { |
a234aee5 | 274 | printLockingError(); |
076682aa AD |
275 | return |
276 | } | |
476cac42 AD |
277 | var query_str = "backend.php?op=feeds&subop=catchupAll"; |
278 | ||
279 | notify("Marking all feeds as read..."); | |
280 | ||
281 | xmlhttp.open("GET", query_str, true); | |
282 | xmlhttp.onreadystatechange=feedlist_callback; | |
283 | xmlhttp.send(null); | |
284 | ||
285 | } | |
1cd17194 | 286 | |
476cac42 | 287 | function viewfeed(feed, skip, subop) { |
1cd17194 | 288 | |
36bf7496 AD |
289 | enableHotkeys(); |
290 | ||
c374a3fe AD |
291 | var searchbox = document.getElementById("searchbox"); |
292 | ||
293 | if (searchbox) { | |
294 | search_query = searchbox.value; | |
295 | } else { | |
296 | search_query = ""; | |
297 | } | |
298 | ||
299 | /* if (active_feed_id == feed && subop != "ForceUpdate") { | |
300 | notify("This feed is currently selected."); | |
301 | return; | |
302 | } */ | |
d76a3b03 | 303 | |
c3a8d71a AD |
304 | if (skip < 0 || skip > total_feed_entries) { |
305 | return; | |
306 | } | |
307 | ||
c0e5a40e | 308 | if (!xmlhttp_ready(xmlhttp)) { |
a234aee5 | 309 | printLockingError(); |
076682aa AD |
310 | return |
311 | } | |
c3a8d71a | 312 | |
431ade55 | 313 | if (active_feed_id != feed || skip != active_offset) { |
b5daec98 | 314 | active_post_id = false; |
431ade55 | 315 | } |
b5daec98 | 316 | |
9cfc649a | 317 | active_feed_id = feed; |
c3a8d71a | 318 | active_offset = skip; |
076682aa | 319 | |
c374a3fe AD |
320 | var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) + |
321 | "&skip=" + param_escape(skip) + "&subop=" + param_escape(subop); | |
322 | ||
323 | if (search_query != "") { | |
324 | query = query + "&search=" + param_escape(search_query); | |
325 | } | |
326 | ||
327 | xmlhttp.open("GET", query, true); | |
1cd17194 AD |
328 | xmlhttp.onreadystatechange=viewfeed_callback; |
329 | xmlhttp.send(null); | |
330 | ||
1c37c607 AD |
331 | notify("Loading headlines..."); |
332 | ||
1cd17194 AD |
333 | } |
334 | ||
b5daec98 AD |
335 | function markHeadline(id) { |
336 | var row = document.getElementById("RROW-" + id); | |
337 | if (row) { | |
338 | row.className = row.className + "Selected"; | |
339 | } | |
340 | } | |
341 | ||
caa4e57f AD |
342 | function getFeedIds() { |
343 | var content = document.getElementById("feedsList"); | |
344 | ||
345 | var rows = new Array(); | |
346 | ||
347 | for (i = 0; i < content.rows.length; i++) { | |
348 | var id = content.rows[i].id.replace("FEEDR-", ""); | |
349 | if (id.length > 0) { | |
350 | rows.push(id); | |
351 | } | |
352 | } | |
353 | ||
354 | return rows; | |
355 | } | |
356 | ||
a3ee2a38 AD |
357 | function cleanSelected(element) { |
358 | var content = document.getElementById(element); | |
9cfc649a AD |
359 | |
360 | var rows = new Array(); | |
361 | ||
362 | for (i = 0; i < content.rows.length; i++) { | |
363 | content.rows[i].className = content.rows[i].className.replace("Selected", ""); | |
364 | } | |
365 | ||
366 | } | |
367 | ||
a1a8a2be | 368 | function view(id,feed_id) { |
d76a3b03 | 369 | |
36bf7496 AD |
370 | enableHotkeys(); |
371 | ||
c0e5a40e | 372 | if (!xmlhttp_ready(xmlhttp_view)) { |
a234aee5 | 373 | printLockingError(); |
076682aa AD |
374 | return |
375 | } | |
376 | ||
d76a3b03 AD |
377 | var crow = document.getElementById("RROW-" + id); |
378 | ||
a1a8a2be AD |
379 | if (crow.className.match("Unread")) { |
380 | var umark = document.getElementById("FEEDU-" + feed_id); | |
381 | umark.innerHTML = umark.innerHTML - 1; | |
d76a3b03 | 382 | crow.className = crow.className.replace("Unread", ""); |
d76a3b03 | 383 | |
a1a8a2be AD |
384 | if (umark.innerHTML == "0") { |
385 | var feedr = document.getElementById("FEEDR-" + feed_id); | |
386 | feedr.className = feedr.className.replace("Unread", ""); | |
387 | } | |
9cfc649a | 388 | |
76798ff3 | 389 | total_unread--; |
76798ff3 | 390 | } |
1cd17194 | 391 | |
a3ee2a38 | 392 | cleanSelected("headlinesList"); |
b10e1550 | 393 | // crow.className = crow.className + "Selected"; |
9cfc649a | 394 | |
b197f117 AD |
395 | var upd_img_pic = document.getElementById("FUPDPIC-" + id); |
396 | ||
397 | if (upd_img_pic) { | |
398 | upd_img_pic.innerHTML = ""; | |
399 | } | |
400 | ||
c33c296c | 401 | // document.getElementById('content').innerHTML='Loading, please wait...'; |
1cd17194 | 402 | |
7ff88e75 AD |
403 | var unread_rows = getVisibleUnreadHeadlines(); |
404 | ||
405 | if (unread_rows.length == 0) { | |
406 | var button = document.getElementById("btnCatchupPage"); | |
40789bbf AD |
407 | if (button) { |
408 | button.className = "disabledButton"; | |
409 | button.href = ""; | |
410 | } | |
7ff88e75 AD |
411 | } |
412 | ||
9cfc649a AD |
413 | active_post_id = id; |
414 | ||
c3a8d71a AD |
415 | xmlhttp_view.open("GET", "backend.php?op=view&id=" + param_escape(id), true); |
416 | xmlhttp_view.onreadystatechange=view_callback; | |
417 | xmlhttp_view.send(null); | |
1cd17194 | 418 | |
c0e5a40e | 419 | |
1cd17194 AD |
420 | } |
421 | ||
40d13c28 | 422 | function timeout() { |
cb246176 | 423 | scheduleFeedUpdate(true); |
ac53063a | 424 | setTimeout("timeout()", 1800*1000); |
ac53063a AD |
425 | } |
426 | ||
c374a3fe AD |
427 | function resetSearch() { |
428 | document.getElementById("searchbox").value = ""; | |
429 | viewfeed(active_feed_id, 0, ""); | |
430 | } | |
ac53063a | 431 | |
c374a3fe | 432 | function search(feed) { |
c374a3fe | 433 | viewfeed(feed, 0, ""); |
76798ff3 | 434 | } |
1cd17194 | 435 | |
13ad9102 AD |
436 | function localPiggieFunction(enable) { |
437 | if (enable) { | |
438 | var query_str = "backend.php?op=feeds&subop=piggie"; | |
439 | ||
c0e5a40e | 440 | if (xmlhttp_ready(xmlhttp)) { |
13ad9102 AD |
441 | |
442 | xmlhttp.open("GET", query_str, true); | |
443 | xmlhttp.onreadystatechange=feedlist_callback; | |
444 | xmlhttp.send(null); | |
445 | } | |
446 | } | |
447 | } | |
448 | ||
9cfc649a AD |
449 | function relativeid_callback() { |
450 | ||
451 | if (xmlhttp_rpc.readyState == 4) { | |
452 | notify(xmlhttp_rpc.responseText); | |
453 | } | |
454 | ||
455 | } | |
456 | ||
7ff88e75 AD |
457 | function getVisibleUnreadHeadlines() { |
458 | var content = document.getElementById("headlinesList"); | |
459 | ||
460 | var rows = new Array(); | |
461 | ||
462 | for (i = 0; i < content.rows.length; i++) { | |
463 | var row_id = content.rows[i].id.replace("RROW-", ""); | |
464 | if (row_id.length > 0 && content.rows[i].className.match("Unread")) { | |
465 | rows.push(row_id); | |
466 | } | |
467 | } | |
468 | return rows; | |
469 | } | |
470 | ||
9cfc649a AD |
471 | function getVisibleHeadlineIds() { |
472 | ||
473 | var content = document.getElementById("headlinesList"); | |
474 | ||
475 | var rows = new Array(); | |
476 | ||
477 | for (i = 0; i < content.rows.length; i++) { | |
478 | var row_id = content.rows[i].id.replace("RROW-", ""); | |
479 | if (row_id.length > 0) { | |
480 | rows.push(row_id); | |
481 | } | |
482 | } | |
9cfc649a | 483 | return rows; |
9cfc649a AD |
484 | } |
485 | ||
c3a8d71a AD |
486 | function getFirstVisibleHeadlineId() { |
487 | var rows = getVisibleHeadlineIds(); | |
488 | return rows[0]; | |
489 | } | |
9cfc649a | 490 | |
c3a8d71a AD |
491 | function getLastVisibleHeadlineId() { |
492 | var rows = getVisibleHeadlineIds(); | |
493 | return rows[rows.length-1]; | |
494 | } | |
9cfc649a | 495 | |
c3a8d71a | 496 | function moveToPost(mode) { |
9cfc649a AD |
497 | |
498 | var rows = getVisibleHeadlineIds(); | |
499 | ||
500 | var prev_id; | |
501 | var next_id; | |
502 | ||
c3a8d71a AD |
503 | if (active_post_id == false) { |
504 | next_id = getFirstVisibleHeadlineId(); | |
505 | prev_id = getLastVisibleHeadlineId(); | |
506 | } else { | |
507 | for (var i = 0; i < rows.length; i++) { | |
508 | if (rows[i] == active_post_id) { | |
509 | prev_id = rows[i-1]; | |
510 | next_id = rows[i+1]; | |
511 | } | |
9cfc649a AD |
512 | } |
513 | } | |
514 | ||
c3a8d71a AD |
515 | if (mode == "next") { |
516 | if (next_id != undefined) { | |
517 | view(next_id, active_feed_id); | |
518 | } else { | |
519 | _viewfeed_autoselect_first = true; | |
520 | viewfeed(active_feed_id, active_offset+15); | |
521 | } | |
9cfc649a AD |
522 | } |
523 | ||
c3a8d71a AD |
524 | if (mode == "prev") { |
525 | if ( prev_id != undefined) { | |
526 | view(prev_id, active_feed_id); | |
527 | } else { | |
528 | _viewfeed_autoselect_last = true; | |
529 | viewfeed(active_feed_id, active_offset-15); | |
530 | } | |
9cfc649a AD |
531 | } |
532 | ||
533 | } | |
534 | ||
535 | function localHotkeyHandler(keycode) { | |
536 | ||
9cfc649a | 537 | if (keycode == 78) { |
c3a8d71a | 538 | return moveToPost('next'); |
9cfc649a AD |
539 | } |
540 | ||
541 | if (keycode == 80) { | |
c3a8d71a | 542 | return moveToPost('prev'); |
9cfc649a | 543 | } |
c3a8d71a AD |
544 | |
545 | if (keycode == 82) { | |
546 | return scheduleFeedUpdate(true); | |
547 | } | |
548 | ||
549 | if (keycode == 85) { | |
550 | return viewfeed(active_feed_id, active_offset, "ForceUpdate"); | |
551 | } | |
552 | ||
553 | // notify("KC: " + keycode); | |
554 | ||
9cfc649a AD |
555 | } |
556 | ||
13ad9102 | 557 | |
76798ff3 | 558 | function init() { |
c0e5a40e AD |
559 | |
560 | // IE kludge | |
561 | ||
562 | if (xmlhttp && !xmlhttp_rpc) { | |
563 | xmlhttp_rpc = xmlhttp; | |
564 | xmlhttp_view = xmlhttp; | |
565 | } | |
566 | ||
567 | if (!xmlhttp || !xmlhttp_rpc || !xmlhttp_view) { | |
c3a8d71a AD |
568 | document.getElementById("headlines").innerHTML = |
569 | "<b>Fatal error:</b> This program needs XmlHttpRequest " + | |
570 | "to function properly. Your browser doesn't seem to support it."; | |
571 | return; | |
572 | } | |
573 | ||
476cac42 | 574 | updateFeedList(false, false); |
13ad9102 | 575 | document.onkeydown = hotkey_handler; |
ac53063a | 576 | setTimeout("timeout()", 1800*1000); |
1cd17194 | 577 | } |