summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/prefs.js')
-rw-r--r--js/prefs.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/js/prefs.js b/js/prefs.js
index ce233b749..a151cbedf 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -2073,4 +2073,35 @@ function gotoExportOpml(filename, settings) {
}
+function batchSubscribe() {
+ try {
+ var query = "backend.php?op=dlg&method=batchSubscribe";
+
+ if (dijit.byId("batchSubDlg"))
+ dijit.byId("batchSubDlg").destroyRecursive();
+
+ var dialog = new dijit.Dialog({
+ id: "batchSubDlg",
+ title: __("Batch subscribe"),
+ style: "width: 600px",
+ execute: function() {
+ if (this.validate()) {
+ console.log(dojo.objectToQuery(this.attr('value')));
+
+ notify_progress(__("Subscribing to feeds..."), true);
+
+ new Ajax.Request("backend.php", {
+ parameters: dojo.objectToQuery(this.attr('value')),
+ onComplete: function(transport) {
+ this.hide();
+ } });
+ }
+ },
+ href: query});
+
+ dialog.show();
+ } catch (e) {
+ exception_error("batchSubscribe", e);
+ }
+}