mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 04:36:24 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user