1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:55:55 +00:00

modify filterCR to call user-specified callback on CR (e.g. for search toolbar)

This commit is contained in:
Andrew Dolgov
2006-10-01 07:33:32 +01:00
parent 5f0429a233
commit 6e6504bc02
4 changed files with 22 additions and 12 deletions

View File

@@ -2511,7 +2511,7 @@
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>";
@@ -2647,7 +2647,7 @@
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>";