debug_mode_enabled = !debug_mode_enabled;
}
+ if (keycode == 190 && shift_key) { // >
+ viewFeedGoPage(1);
+ }
+
+ if (keycode == 188 && shift_key) { // <
+ viewFeedGoPage(-1);
+ }
+
+ if (keycode == 191 && shift_key) { // ?
+ viewFeedGoPage(0);
+ }
+
if (keycode == 69 && shift_key) {
return editFeedDlg(getActiveFeedId());
}
if (t == "category") {
var catctr = document.getElementById("FCATCTR-" + id);
if (catctr) {
- catctr.innerHTML = "(" + ctr + " unread)";
+ catctr.innerHTML = "(" + ctr + ")";
+ if (ctr > 0) {
+ catctr.className = "catCtrHasUnread";
+ } else {
+ catctr.className = "catCtrNoUnread";
+ }
}
continue;
}
}
}
-function parse_counters_reply(xmlhttp) {
+function parse_counters_reply(xmlhttp, scheduled_call) {
if (!xmlhttp.responseXML) {
notify("refetch_callback: backend did not return valid XML", true, true);
var counters = reply.firstChild;
- parse_counters(counters, true);
+ parse_counters(counters, scheduled_call);
var runtime_info = counters.nextSibling;
query = query + "&aid=" + feed;
}
+ if (tagsAreDisplayed()) {
+ query = query + "&omode=lt";
+ } else {
+ query = query + "&omode=flc";
+ }
+
+ debug("update_all_counters QUERY: " + query);
+
xmlhttp_rpc.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=all_counters_callback;
xmlhttp_rpc.send(null);
function viewContentUrl(url) {
getContentContext().location = url;
}
+
+function filterDlgCheckAction(sender) {
+
+ try {
+
+ var action = sender[sender.selectedIndex].value;
+
+ var form = document.forms["filter_add_form"];
+
+ if (!form) {
+ form = document.forms["filter_edit_form"];
+ }
+
+ if (!form) {
+ debug("filterDlgCheckAction: can't find form!");
+ return;
+ }
+
+ var action_param = form.action_param;
+
+ if (!action_param) {
+ debug("filterDlgCheckAction: can't find action param!");
+ return;
+ }
+
+ // if selected action supports parameters, enable params field
+ if (action == 4) {
+ action_param.disabled = false;
+ } else {
+ action_param.disabled = true;
+ }
+
+ } catch (e) {
+ exception_error(e, "filterDlgCheckAction");
+ }
+
+}