]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
modify filterCR to call user-specified callback on CR (e.g. for search toolbar)
[tt-rss.git] / backend.php
index e9bca73460edcee6b122bc563d01e23157d6bb9c..c63b981c29c86be55e9e5f87233116050b4a909e 100644 (file)
                        print "<table width='100%'><tr><td>Search:</td><td>";
                        
                        print "<input name=\"query\" class=\"iedit\" 
-                               onkeypress=\"return filterCR(event)\"
+                               onkeypress=\"return filterCR(event, search)\"
                                onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
                                value=\"\">
                        </td></tr>";
                        print "<table width='100%'>";
 
                        print "<tr><td>Match:</td>
-                               <td><input onkeypress=\"return filterCR(event)\"
+                               <td><input onkeypress=\"return filterCR(event, qaddFilter)\"
                                         onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                        name=\"reg_exp\" class=\"iedit\">";             
                        print "</td><td>";