var last_refetch = 0;
var cookie_lifetime = 0;
var active_feed_id = 0;
+var active_feed_is_cat = false;
var xmlhttp = Ajax.getTransport();
xmlhttp.send(null);
} else {
debug("xmlhttp busy");
- printLockingError();
+ //printLockingError();
}
}
}
-function viewCurrentFeed(skip, subop) {
+function viewCurrentFeed(subop) {
if (getActiveFeedId()) {
- viewfeed(getActiveFeedId(), skip, subop);
+ viewfeed(getActiveFeedId(), subop);
} else {
disableContainerChildren("headlinesToolbar", false, document);
- viewfeed(-1, skip, subop); // FIXME
+ viewfeed(-1, subop); // FIXME
}
return false; // block unneeded form submits
}
-function viewfeed(feed, skip, subop) {
+function viewfeed(feed, subop) {
var f = window.frames["feeds-frame"];
- f.viewfeed(feed, skip, subop);
+ f.viewfeed(feed, subop);
}
function timeout() {
if (searchbox.value != "" && getActiveFeedId()) {
searchbox.value = "";
- viewfeed(getActiveFeedId(), 0, "");
+ viewfeed(getActiveFeedId(), "");
}
}
}
if (opid == "qmcSearch") {
- displayDlg("search", getActiveFeedId());
+ displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat());
return;
}
function catchupCurrentFeed() {
- var fn = getFeedName(getActiveFeedId());
+ var fn = getFeedName(getActiveFeedId(), active_feed_is_cat);
- if (confirm("Mark all articles in " + fn + " as read?")) {
+ var str = "Mark all articles in " + fn + " as read?";
+
+/* if (active_feed_is_cat) {
+ str = "Mark all articles in this category as read?";
+ } */
+
+ if (confirm(str)) {
return viewCurrentFeed(0, 'MarkAllRead')
}
}
+