Improved UIxContactsUserFolders

Monotone-Parent: 69aea51b0d7ecf49944b3cbfb0693ab21303c715
Monotone-Revision: b917f2afae3c6e2c7a99f4406fd78c09462e37b1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-06-15T15:58:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-06-15 15:58:47 +00:00
parent dbd90b1f58
commit dd543d934e
3 changed files with 25 additions and 14 deletions
+7 -4
View File
@@ -985,7 +985,7 @@ function onSearchFocus() {
}
function onSearchBlur(event) {
if (!this.value || this.value.strip().length == 0) {
if (!this.value || this.value.blank()) {
this.setAttribute("modified", "");
this.setStyle({ color: "#aaa" });
this.value = this.ghostPhrase;
@@ -1007,12 +1007,15 @@ function onSearchKeyDown(event) {
if (this.timer)
clearTimeout(this.timer);
if (event.keyCode == 13) {
if (event.ctrlKey || event.metaKey)
return;
else if (event.keyCode == Event.KEY_RETURN) {
onSearchFormSubmit();
preventDefault(event);
}
else if (event.keyCode == 8
|| event.keyCode >31)
else if (event.keyCode == 0
|| event.keyCode == Event.KEY_BACKSPACE
|| event.keyCode > 31)
this.timer = setTimeout("onSearchFormSubmit()", 1000);
}