1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 13:51:28 +00:00

use POST parameters for frontend requests

This commit is contained in:
Andrew Dolgov
2009-12-29 18:49:27 +03:00
parent 12e55b9017
commit b4e75b2a25
18 changed files with 412 additions and 350 deletions

View File

@@ -854,7 +854,7 @@ function update_offline_data(stage) {
if (!db || offline_mode || getInitParam("offline_enabled") != "1") return;
var query = "backend.php?op=rpc&subop=download";
var query = "?op=rpc&subop=download";
var rs = db.execute("SELECT MAX(id), MIN(id) FROM articles");
@@ -877,10 +877,10 @@ function update_offline_data(stage) {
var to_sync = prepare_local_sync_data();
if (to_sync != "") {
to_sync = "?sync=" + param_escape(to_sync);
to_sync = "&sync=" + param_escape(to_sync);
}
debug(query + "/" + to_sync);
query = query + to_sync;
var pic = $("offlineModePic");
@@ -896,8 +896,10 @@ function update_offline_data(stage) {
sync_in_progress = true;
new Ajax.Request(query, {
parameters: to_sync,
debug(query);
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
offline_download_parse(stage, transport);
} });