var current_subtitle = "";
var daemon_enabled = false;
var _qfd_deleted_feed = 0;
+var firsttime_update = true;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
if (!daemon_enabled) {
notify("All feeds updated.");
- } else {
- global_unread = 0;
+ updateTitle("");
}
- updateTitle("");
} catch (e) {
exception_error("refetch_callback", e);
updateTitle("");
var omode;
- if (display_tags) {
- omode = "t";
+ if (firsttime_update) {
+ firsttime_update = false;
+ omode = "T";
} else {
- omode = "fl";
+ if (display_tags) {
+ omode = "t";
+ } else {
+ omode = "flc";
+ }
}
-
+
query_str = query_str + "&omode=" + omode;
query_str = query_str + "&uctr=" + global_unread;
+
if (xmlhttp_ready(xmlhttp)) {
xmlhttp.open("GET", query_str, true);
xmlhttp.onreadystatechange=refetch_callback;
function localHotkeyHandler(keycode) {
-/* if (keycode == 78) {
- return moveToPost('next');
- }
-
- if (keycode == 80) {
- return moveToPost('prev');
- } */
-
if (keycode == 82) { // r
return scheduleFeedUpdate(true);
}
function updateTitle(s) {
var tmp = "Tiny Tiny RSS";
- if (s && s.length > 0) {
+ if (s != undefined) {
current_subtitle = s;
}
tmp = tmp + " (" + global_unread + ")";
}
- if (s) {
+ if (current_subtitle) {
tmp = tmp + " - " + current_subtitle;
}
try {
+ // this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
+
+ if (arguments.callee.done) return;
+ arguments.callee.done = true;
+
disableContainerChildren("headlinesToolbar", true);
if (!genericSanityCheck())