enable search toolbar
This commit is contained in:
parent
86b682ce2f
commit
164f4738eb
|
@ -757,8 +757,6 @@
|
||||||
window.onload = init;
|
window.onload = init;
|
||||||
</script>";
|
</script>";
|
||||||
|
|
||||||
// print_r($_GET);
|
|
||||||
|
|
||||||
$search = db_escape_string($_GET["query"]);
|
$search = db_escape_string($_GET["query"]);
|
||||||
$search_mode = db_escape_string($_GET["search_mode"]);
|
$search_mode = db_escape_string($_GET["search_mode"]);
|
||||||
$match_on = db_escape_string($_GET["match_on"]);
|
$match_on = db_escape_string($_GET["match_on"]);
|
||||||
|
|
|
@ -79,6 +79,10 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) {
|
||||||
|
|
||||||
var toolbar_query = parent.Form.serialize("main_toolbar_form");
|
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 + "&" +
|
var query = "backend.php?op=viewfeed&feed=" + feed + "&" +
|
||||||
toolbar_query + "&subop=" + param_escape(subop);
|
toolbar_query + "&subop=" + param_escape(subop);
|
||||||
|
|
||||||
|
|
|
@ -248,6 +248,7 @@ function viewCurrentFeed(skip, subop) {
|
||||||
disableContainerChildren("headlinesToolbar", false, document);
|
disableContainerChildren("headlinesToolbar", false, document);
|
||||||
viewfeed(-1, skip, subop); // FIXME
|
viewfeed(-1, skip, subop); // FIXME
|
||||||
}
|
}
|
||||||
|
return false; // block unneeded form submits
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewfeed(feed, skip, subop) {
|
function viewfeed(feed, skip, subop) {
|
||||||
|
|
32
tt-rss.php
32
tt-rss.php
|
@ -150,26 +150,17 @@ window.onload = init;
|
||||||
|
|
||||||
<tr><td class="headlinesToolbar" id="headlinesToolbar">
|
<tr><td class="headlinesToolbar" id="headlinesToolbar">
|
||||||
|
|
||||||
<!-- <? if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
|
|
||||||
|
|
||||||
<input id="searchbox"
|
|
||||||
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">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<? } ?> -->
|
|
||||||
|
|
||||||
<form id="main_toolbar_form">
|
<form id="main_toolbar_form">
|
||||||
|
|
||||||
|
<? if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
|
||||||
|
<input name="query"
|
||||||
|
onKeyPress="return filterCR(event)"
|
||||||
|
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();">
|
||||||
|
<input class="button" type="submit"
|
||||||
|
onclick="return viewCurrentFeed(0)" value="Search">
|
||||||
|
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
View:
|
View:
|
||||||
<select name="view_mode" onchange="viewCurrentFeed(0, '')">
|
<select name="view_mode" onchange="viewCurrentFeed(0, '')">
|
||||||
<option selected value="adaptive">Adaptive</option>
|
<option selected value="adaptive">Adaptive</option>
|
||||||
|
@ -177,7 +168,8 @@ window.onload = init;
|
||||||
<option value="marked">Starred</option>
|
<option value="marked">Starred</option>
|
||||||
<option value="unread">Unread</option>
|
<option value="unread">Unread</option>
|
||||||
</select>
|
</select>
|
||||||
Limit:
|
|
||||||
|
Limit:
|
||||||
<?
|
<?
|
||||||
$limits = array(15 => 15, 30 => 30, 60 => 60, 0 => "All");
|
$limits = array(15 => 15, 30 => 30, 60 => 60, 0 => "All");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue