From c36b2adf8488cdf88b0ef05d211c16815f8c5407 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Feb 2021 21:57:02 +0300 Subject: feeds with errors: use client dialog --- classes/pref/feeds.php | 53 ++++---------------------------------------------- 1 file changed, 4 insertions(+), 49 deletions(-) (limited to 'classes/pref/feeds.php') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 03e8b1b81..f337d7f4e 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1500,58 +1500,13 @@ class Pref_Feeds extends Handler_Protected { FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ?"); $sth->execute([$_SESSION['uid']]); - print "
"; - print "
". - "" . __('Select').""; - print "
"; - print "
".__('All')."
"; - print "
".__('None')."
"; - print "
"; - print "
"; #toolbar - - print "
"; - print ""; - - $lnum = 1; - - while ($line = $sth->fetch()) { - - $feed_id = $line["id"]; - - print ""; - - print ""; - print ""; - print ""; + $rv = []; - ++$lnum; + while ($row = $sth->fetch()) { + array_push($rv, $row); } - print "
"; - - print "". - htmlspecialchars($line["title"]).": "; - - print ""; - print htmlspecialchars($line["last_error"]); - print ""; - - print "
"; - print "
"; - - print ""; + print json_encode($rv); } private function remove_feed_category($id, $owner_uid) { -- cgit v1.2.3