mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-28 06:35:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user