]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed search works now
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 Aug 2005 08:15:19 +0000 (09:15 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 Aug 2005 08:15:19 +0000 (09:15 +0100)
backend.php
tt-rss.js

index 027c7060dcc730844aa07b9c5fa95ed0ba8bef88..9e47ac38cb19ecc69b2d1fc40f3f7961502e46db 100644 (file)
                print "<tr>
                <td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>"; 
 
-               if ($ext == "SEARCH") {
+               if ($subop == "search") {
                        $search = $_GET["search"];
                        $search_query_part = "(upper(title) LIKE upper('%$search%') 
                                OR content LIKE '%$search%') AND";
index 16ca4cf1af64cf0f41f4236478fd66faed5312f9..1776c1c3314fd67e845ce48e2136191969f297c6 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -297,7 +297,7 @@ function search(feed, sender) {
        document.getElementById('content').innerHTML='&nbsp;';          
 
        xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
-               "&search=" + param_escape(sender.value) + "&ext=SEARCH", true);
+               "&search=" + param_escape(sender.value) + "&subop=search", true);
        xmlhttp.onreadystatechange=viewfeed_callback;
        xmlhttp.send(null);