- Fix UI issue with search box when text is entered (probably)

- Restore Fx3.0 quick search code
This commit is contained in:
Dan Stillman 2009-10-15 00:34:59 +00:00
parent 249e8fa857
commit bdd7bd9beb
2 changed files with 7 additions and 2 deletions

View file

@ -1489,7 +1489,9 @@ var ZoteroPane = new function()
var searchVal = search.value;
this.itemsView.setFilter('search', searchVal);
document.getElementById('zotero-tb-search-cancel').hidden = searchVal == "";
if (Zotero.isFx30) {
document.getElementById('zotero-tb-search-cancel').hidden = searchVal == "";
}
}
}

View file

@ -243,7 +243,10 @@
<label id="zotero-tb-search-label" value="&zotero.toolbar.search.label;" control="zotero-tb-search" hidden="true"/>
<textbox id="zotero-tb-search" type="search" timeout="250" command="cmd_zotero_search" dir="reverse"
onkeypress="ZoteroPane.handleSearchKeypress(this, event)"
oninput="ZoteroPane.handleSearchInput(this, event)">
oninput="ZoteroPane.handleSearchInput(this, event)"
testcode="me.value.indexOf('&quot;') == -1"
prefire="ZoteroPane.clearItemsPaneMessage()"
ontestfail="ZoteroPane.setItemsPaneMessage(Zotero.getString('advancedSearchMode'))">
<toolbarbutton id="zotero-tb-search-cancel" oncommand="this.parentNode.value='';" hidden="true"/>
</textbox>
</hbox>