mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 14:01:30 +00:00
rework editSelectedFeeds to use http POST
This commit is contained in:
16
prefs.js
16
prefs.js
@@ -680,15 +680,23 @@ function editSelectedFeeds() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
notify("");
|
notify_progress("Loading, please wait...");
|
||||||
|
|
||||||
var query = "backend.php?op=pref-feeds&subop=editfeeds&ids=" +
|
var query = "backend.php?op=pref-feeds&subop=editfeeds&ids=" +
|
||||||
param_escape(rows.toString());
|
param_escape(rows.toString());
|
||||||
|
|
||||||
|
console.log(query);
|
||||||
|
|
||||||
if (dijit.byId("feedEditDlg"))
|
if (dijit.byId("feedEditDlg"))
|
||||||
dijit.byId("feedEditDlg").destroyRecursive();
|
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",
|
id: "feedEditDlg",
|
||||||
title: __("Edit Multiple Feeds"),
|
title: __("Edit Multiple Feeds"),
|
||||||
style: "width: 600px",
|
style: "width: 600px",
|
||||||
@@ -768,10 +776,12 @@ function editSelectedFeeds() {
|
|||||||
}})
|
}})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
href: query});
|
content: transport.responseText});
|
||||||
|
|
||||||
dialog.show();
|
dialog.show();
|
||||||
|
|
||||||
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("editSelectedFeeds", e);
|
exception_error("editSelectedFeeds", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user