Closes #151, Show "X" in search box to cancel search.

- I had to make the textbox taller, but it seems to be working right.
Fixed problem with note editor in right pane not updating correctly.
This commit is contained in:
David Norton 2006-08-01 18:01:48 +00:00
parent 3414004cb0
commit 635d2e48b9
4 changed files with 18 additions and 2 deletions

View file

@ -28,7 +28,7 @@
if(this.note.getSource())
this.item = Scholar.Items.get(this.note.getSource());
this.id('noteField').setAttribute('value',this.note.getNote());
this.id('noteField').value = this.note.getNote();
this.id('links').item = this.note;
]]>
</setter>

View file

@ -255,6 +255,7 @@ var ScholarPane = new function()
//document.getElementById('scholar-search-options').getElementsByAttribute('checked','true')[0].label
document.getElementById('scholar-search-options').hidden = searchVal == "";
document.getElementById('tb-search-cancel').hidden = searchVal == "";
}
}

View file

@ -92,7 +92,9 @@
<toolbarbutton id="tb-note-add" tooltiptext="New Standalone Note" oncommand="ScholarPane.newNote();"/>
<spacer flex="1"/>
<label value="&toolbar.search.label;" control="tb-search"/>
<textbox id="tb-search" type="timed" timeout="250" command="cmd_scholar_search"/>
<textbox id="tb-search" type="timed" timeout="250" command="cmd_scholar_search" dir="reverse" onkeypress="if(event.keyCode == event.DOM_VK_ESCAPE) { this.value = ''; this.doCommand('cmd_scholar_search'); return false; }">
<toolbarbutton id="tb-search-cancel" class="tabs-closebutton" oncommand="this.parentNode.value='';" hidden="true"/>
</textbox>
</toolbar>
<hbox id="scholar-search-options" hidden="true">
<hbox>

View file

@ -133,6 +133,19 @@
#tb-search
{
width: 150px;
height: 24px;
margin: 0px;
margin-bottom: 2px;
padding: 0px;
vertical-align: middle;
font-size: 12px;
}
#tb-search-cancel
{
margin: 0px;
padding: 0px;
cursor: pointer;
}
#scholar-view-item vbox