1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +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

@@ -154,7 +154,7 @@ window.onload = init;
<?php if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
<input name="query"
onKeyPress="return filterCR(event)"
onKeyPress="return filterCR(event, viewCurrentFeed)"
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();">
<input class="button" type="submit"
onclick="return viewCurrentFeed(0)" value="Search">