rework editSelectedFeeds to use http POST

This commit is contained in:
Andrew Dolgov 2011-11-11 14:20:54 +04:00
parent 01becdcdaa
commit 755c8f95ef
1 changed files with 91 additions and 81 deletions

View File

@ -680,15 +680,23 @@ function editSelectedFeeds() {
return;
}
notify("");
notify_progress("Loading, please wait...");
var query = "backend.php?op=pref-feeds&subop=editfeeds&ids=" +
param_escape(rows.toString());
console.log(query);
if (dijit.byId("feedEditDlg"))
dijit.byId("feedEditDlg").destroyRecursive();
dialog = new dijit.Dialog({
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
notify("");
var dialog = new dijit.Dialog({
id: "feedEditDlg",
title: __("Edit Multiple Feeds"),
style: "width: 600px",
@ -768,10 +776,12 @@ function editSelectedFeeds() {
}})
}
},
href: query});
content: transport.responseText});
dialog.show();
} });
} catch (e) {
exception_error("editSelectedFeeds", e);
}