/* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */
if ($subop == "catchupSelected") {
- $ids = split(",", db_escape_string($_GET["ids"]));
- $cmode = sprintf("%d", $_GET["cmode"]);
+ $ids = split(",", db_escape_string($_REQUEST["ids"]));
+ $cmode = sprintf("%d", $_REQUEST["cmode"]);
catchupArticlesById($link, $ids, $cmode);
if (cmode == undefined) cmode = 2;
- var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
- param_escape(id) + "&cmode=" + param_escape(cmode);
+ var query = "backend.php?op=rpc&subop=catchupSelected" +
+ "&cmode=" + param_escape(cmode);
+
+ var ids = "?ids=" + param_escape(id);
// notify_progress("Loading, please wait...");
new Ajax.Request(query, {
+ parameters: ids,
onComplete: function(transport) {
all_counters_callback2(transport);
} });
cmode = "0";
}
- var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
- param_escape(rows.toString()) + "&cmode=" + cmode;
+ var query = "backend.php?op=rpc&subop=catchupSelected" +
+ "&cmode=" + cmode;
+
+ var ids = "?ids=" + param_escape(rows.toString());
notify_progress("Loading, please wait...");
new Ajax.Request(query, {
+ parameters: ids,
onComplete: function(transport) {
catchup_callback2(transport, callback_func);
} });
}
}
- var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
- param_escape(ids.toString()) + "&cmode=0";
+ var query = "backend.php?op=rpc&subop=catchupSelected" +
+ "&cmode=0";
+
+ var ids = "?ids=" + param_escape(ids.toString());
new Ajax.Request(query, {
+ parameters: ids,
onComplete: function(transport) {
all_counters_callback2(transport);
} });
e.className = e.className.replace("Unread", "");
}
- var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
- param_escape(ids_to_mark.toString()) + "&cmode=0";
+ var query = "backend.php?op=rpc&subop=catchupSelected" +
+ "&cmode=0";
+
+ var ids = "?ids=" + param_escape(ids_to_mark.toString());
new Ajax.Request(query, {
+ parameters: ids,
onComplete: function(transport) {
catchup_callback2(transport);
} });