|
|
@ -392,21 +392,7 @@ function view(id) {
|
|
|
|
console.log(query);
|
|
|
|
console.log(query);
|
|
|
|
|
|
|
|
|
|
|
|
if (article_is_unread) {
|
|
|
|
if (article_is_unread) {
|
|
|
|
var ctr = getFeedUnread(getActiveFeedId(), activeFeedIsCat());
|
|
|
|
decrementFeedCounter(getActiveFeedId(), activeFeedIsCat());
|
|
|
|
|
|
|
|
|
|
|
|
if (ctr > 0) {
|
|
|
|
|
|
|
|
setFeedUnread(getActiveFeedId(), activeFeedIsCat(), ctr - 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var cat = parseInt(getFeedCategory(getActiveFeedId()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isNaN(cat)) {
|
|
|
|
|
|
|
|
ctr = getFeedUnread(cat, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ctr > 0) {
|
|
|
|
|
|
|
|
setFeedUnread(cat, true, ctr - 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
@ -1628,6 +1614,7 @@ function cdmClicked(event, id) {
|
|
|
|
toggleSelected(id);
|
|
|
|
toggleSelected(id);
|
|
|
|
|
|
|
|
|
|
|
|
var elem = $("RROW-" + id);
|
|
|
|
var elem = $("RROW-" + id);
|
|
|
|
|
|
|
|
var article_is_unread = elem.hasClassName("Unread");
|
|
|
|
|
|
|
|
|
|
|
|
if (elem)
|
|
|
|
if (elem)
|
|
|
|
elem.removeClassName("Unread");
|
|
|
|
elem.removeClassName("Unread");
|
|
|
@ -1642,6 +1629,10 @@ function cdmClicked(event, id) {
|
|
|
|
|
|
|
|
|
|
|
|
active_post_id = id;
|
|
|
|
active_post_id = id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (article_is_unread) {
|
|
|
|
|
|
|
|
decrementFeedCounter(getActiveFeedId(), activeFeedIsCat());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=rpc&method=catchupSelected" +
|
|
|
|
var query = "?op=rpc&method=catchupSelected" +
|
|
|
|
"&cmode=0&ids=" + param_escape(id);
|
|
|
|
"&cmode=0&ids=" + param_escape(id);
|
|
|
|
|
|
|
|
|
|
|
@ -1656,6 +1647,14 @@ function cdmClicked(event, id) {
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
toggleSelected(id, true);
|
|
|
|
toggleSelected(id, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var elem = $("RROW-" + id);
|
|
|
|
|
|
|
|
var article_is_unread = elem.hasClassName("Unread");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (article_is_unread) {
|
|
|
|
|
|
|
|
decrementFeedCounter(getActiveFeedId(), activeFeedIsCat());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
toggleUnread(id, 0, false);
|
|
|
|
toggleUnread(id, 0, false);
|
|
|
|
zoomToArticle(event, id);
|
|
|
|
zoomToArticle(event, id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|