Monotone-Parent: 9b6a87c288fd476ce2774933261d8fc081fc8334

Monotone-Revision: d6acf550ed6a03fbd33942b8d7cd672e30a07bf0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-03-08T21:42:10
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-03-08 21:42:10 +00:00
parent 17bb6a4c7a
commit 96ae0d1b16
3 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,12 @@
2010-03-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/generic.js (onSearchKeyDown): set the
search timeout to 500 ms instead of 1 sec.
* UI/WebServerResources/UIxContactsUserFolders.js
(onFolderSearchKeyDown): move the start of the animation to
onSearchFormSubmit.
* UI/WebServerResources/generic.js (createDialog): new method
designed to provide a normalized interface for creating popup
dialogs with DOM methods.

View File

@@ -3,6 +3,8 @@
var d;
function onSearchFormSubmit() {
startAnimation($("pageContent"), $("filterPanel"));
var searchValue = $("searchValue");
var encodedValue = encodeURI(searchValue.value);
@@ -244,10 +246,7 @@ function onFolderSearchKeyDown(event) {
}
div.clean = true;
$("addButton").addClassName("disabled");
}
if (this.timer)
startAnimation($("pageContent"), $("filterPanel"));
}
}
function initUserFoldersWindow() {

View File

@@ -932,7 +932,7 @@ function onSearchKeyDown(event) {
else if (event.keyCode == 0
|| event.keyCode == Event.KEY_BACKSPACE
|| event.keyCode > 31)
this.timer = setTimeout("onSearchFormSubmit()", 1000);
this.timer = setTimeout("onSearchFormSubmit()", 500);
}
function onSearchFormSubmit(event) {