search toolbar ui change

This commit is contained in:
Andrew Dolgov 2005-09-11 04:02:23 +01:00
parent 7ba176d2bf
commit 4ce1985967
3 changed files with 7 additions and 9 deletions

View File

@ -128,7 +128,8 @@ function cleanSelectedList(element) {
var content = document.getElementById(element); var content = document.getElementById(element);
for (i = 0; i < content.childNodes.length; i++) { for (i = 0; i < content.childNodes.length; i++) {
content.childNodes[i].className = content.childNodes[i].className.replace("Selected", ""); content.childNodes[i].className =
content.childNodes[i].className.replace("Selected", "");
} }
} }

View File

@ -274,12 +274,7 @@ function resetSearch() {
} }
function search() { function search() {
checkActiveFeedId(); viewCurrentFeed(0, "");
if (getActiveFeedId()) {
viewfeed(getActiveFeedId(), 0, "");
} else {
notify("Please select some feed first.");
}
} }
function localPiggieFunction(enable) { function localPiggieFunction(enable) {

View File

@ -72,11 +72,13 @@
&nbsp; &nbsp;
</td></tr> --> </td></tr> -->
<tr><td class="headlinesToolbar" id="headlinesToolbar"> <tr><td class="headlinesToolbar" id="headlinesToolbar">
Search: <input id="searchbox" <input id="searchbox"
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()" onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
onchange="javascript:search()"> onchange="javascript:search()">
<input type="submit" <input type="submit"
class="button" onclick="javascript:resetSearch()" value="Reset"> class="button" onclick="javascript:search()" value="Search">
<!-- <input type="submit"
class="button" onclick="javascript:resetSearch()" value="Reset"> -->
&nbsp;View: &nbsp;View: