var toolbar_query = parent.Form.serialize("main_toolbar_form");
+ if (parent.document.forms["main_toolbar_form"].query) {
+ parent.document.forms["main_toolbar_form"].query.value = "";
+ }
+
var query = "backend.php?op=viewfeed&feed=" + feed + "&" +
toolbar_query + "&subop=" + param_escape(subop);
disableContainerChildren("headlinesToolbar", false, document);
viewfeed(-1, skip, subop); // FIXME
}
+ return false; // block unneeded form submits
}
function viewfeed(feed, skip, subop) {
<tr><td class="headlinesToolbar" id="headlinesToolbar">
-<!-- <? if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
+ <form id="main_toolbar_form">
- <input id="searchbox"
+ <? if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
+ <input name="query"
+ onKeyPress="return filterCR(event)"
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();">
- <select id="searchmodebox">
- <option value="all_feeds">All feeds</option>
- <option value="this_feed" selected>This feed</option>
- <? if (get_pref($link, 'ENABLE_FEED_CATS')) { ?>
- <option value="this_cat">This category</option>
- <? } ?>
- </select>
-
- <input type="submit"
- class="button" onclick="javascript:search()" value="Search">
+ <input class="button" type="submit"
+ onclick="return viewCurrentFeed(0)" value="Search">
+
+ <? } ?>
-
-
- <? } ?> -->
-
- <form id="main_toolbar_form">
View:
<select name="view_mode" onchange="viewCurrentFeed(0, '')">
<option selected value="adaptive">Adaptive</option>
<option value="marked">Starred</option>
<option value="unread">Unread</option>
</select>
- Limit:
+
+ Limit:
<?
$limits = array(15 => 15, 30 => 30, 60 => 60, 0 => "All");