]> git.wh0rd.org Git - tt-rss.git/commitdiff
create filter dialog preselects active feed
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 23 May 2006 04:16:32 +0000 (05:16 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 23 May 2006 04:16:32 +0000 (05:16 +0100)
backend.php

index 2ffbea3d12300533e494215e5c2ca0cd397ec110..bad5253c991e74a725898f19812f4ea8635dd057 100644 (file)
 
                if ($id == "quickAddFilter") {
 
+                       $active_feed_id = db_escape_string($_GET["param"]);
+
                        print "<div id=\"infoBoxTitle\">Create filter</div>";
                        print "<div class=\"infoBoxContents\">";
 
                        print "<input type=\"hidden\" name=\"subop\" value=\"add\">"; 
 
 //                     print "<div class=\"notice\"><b>Note:</b> filter will only apply to new articles.</div>";
-                       
+               
                        $result = db_query($link, "SELECT id,description 
                                FROM ttrss_filter_types ORDER BY description");
        
                        print "</td></tr>";
                        print "<tr><td>Feed:</td><td colspan='2'>";
 
-                       print_feed_select($link, "feed_id");
+                       print_feed_select($link, "feed_id", $active_feed_id);
                        
                        print "</td></tr>";