From da1f74c9c4e94a7093281daad268aa44ebe5f6c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Nov 2010 21:29:19 +0300 Subject: refactor category editor --- modules/pref-feeds.php | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index d0bc194a4..1b3e451fc 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1021,11 +1021,6 @@ } - header("Content-Type: text/xml"); - print ""; - print "".__('Category editor').""; - print " - - "; + + "; $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]." @@ -1059,13 +1052,9 @@ if (db_num_rows($result) != 0) { -# print __('Select:')." -# ".__('All').", -# ".__('None').""; -# print "
"; - print "
"; +# print ""; print ""; @@ -1105,6 +1094,7 @@ cid: this.srcNodeRef.getAttribute('cat-id')}, load: function(response) { elem.attr('value', response); + updateFeedList(); } }); @@ -1117,7 +1107,7 @@ print "
"; - print "
"; +# print ""; print "
"; @@ -1127,15 +1117,13 @@ print "
- +
"; - print "
"; - print "]]>
"; - return; } -- cgit v1.2.3