From 103d30ad3f92ed03156fee400801d9a38f946b34 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Feb 2021 22:16:17 +0300 Subject: batch subscribe: use client dialog --- classes/pref/feeds.php | 50 ++++---------------------------------------------- 1 file changed, 4 insertions(+), 46 deletions(-) (limited to 'classes') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index f337d7f4e..2649d58a1 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1557,52 +1557,10 @@ class Pref_Feeds extends Handler_Protected { } function batchSubscribe() { - print "
"; - - print_hidden("op", "pref-feeds"); - print_hidden("method", "batchaddfeeds"); - - print "
".__("One valid feed per line (no detection is done)")."
"; - print "
"; - - print ""; - - if (get_pref('ENABLE_FEED_CATS')) { - print "
"; - print " "; - print_feed_cat_select("cat", false, 'dojoType="fox.form.Select"'); - print "
"; - } - - print "
"; - - print ""; - - print ""; - print ""; - - print "
- "; - print "
"; - - print ""; - - print "
"; + print json_encode([ + "enable_cats" => (int)get_pref('ENABLE_FEED_CATS'), + "cat_select" => format_feed_cat_select("cat", false, 'dojoType="fox.form.Select"') + ]); } function batchAddFeeds() { -- cgit v1.2.3-54-g00ecf