See ChangeLog

Monotone-Parent: aadc4759a64f724760d38bbdfd92715182856439
Monotone-Revision: 5e99e6ac2d5684eba786f2ce14295f3a3b5267a3

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-06-21T23:32:18
This commit is contained in:
Ludovic Marcotte committed 2012-06-21 23:32:18 +00:00
1 parent 86b689d7e8
commit 6d745e0f4b
16 files changed
+45 -19

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ var SOGoAutoCompletionInterface = {
document.contactLookupAjaxRequest.aborted = true;
document.contactLookupAjaxRequest.abort();
}
if (input.value.trim().length > 2) {
if (input.value.trim().length > minimumSearchLength) {
var urlstr = UserFolderURL + "Contacts/";
if (input.addressBook)
urlstr += input.addressBook + "/contact";
+1 -1
View File
@@ -177,7 +177,7 @@ function onContactKeydown(event) {
function performSearch(input) {
// Perform address completion
if (!input.value.blank()) {
if (input.value.trim().length > minimumSearchLength) {
var urlstr = (UserFolderURL
+ "Contacts/allContactSearch?excludeGroups=1&search="
+ encodeURIComponent(input.value));
@@ -1,8 +1,6 @@
var d;
function onSearchFormSubmit() {
startAnimation($("pageContent"), $("filterPanel"));
var searchValue = $("searchValue");
var encodedValue = encodeURI(searchValue.value);
@@ -16,8 +14,11 @@ function onSearchFormSubmit() {
document.userFoldersRequest.aborted = true;
document.userFoldersRequest.abort();
}
document.userFoldersRequest
= triggerAjaxRequest(url, usersSearchCallback);
if (encodedValue.trim().length > minimumSearchLength) {
startAnimation($("pageContent"), $("filterPanel"));
document.userFoldersRequest
= triggerAjaxRequest(url, usersSearchCallback);
}
}
return false;
+2 -2
View File
@@ -1,7 +1,7 @@
/* generic.js - this file is part of SOGo
Copyright (C) 2005 SKYRIX Software AG
Copyright (C) 2006-2011 Inverse
Copyright (C) 2006-2012 Inverse
SOGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
@@ -1143,7 +1143,7 @@ function onSearchFormSubmit(event) {
if (searchValue.value != searchValue.ghostPhrase
&& (searchValue.value != searchValue.lastSearch
|| searchValue.value.strip().length > 0)) {
&& searchValue.value.strip().length > minimumSearchLength)) {
search["criteria"] = searchCriteria.value;
search["value"] = searchValue.value;
searchValue.lastSearch = searchValue.value;