From fbe99f8919e2671d0c818708424e470bfb718838 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 4 Jul 2012 18:49:41 +0200 Subject: [PATCH] Small improvements to the user suggestion drop down --- wcfsetup/install/files/js/WCF.js | 4 ++-- wcfsetup/install/files/lib/data/user/UserAction.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3afe0ce554..bba8cd647c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3967,7 +3967,7 @@ WCF.Search.Base = Class.extend({ * minimum search input length, MUST be 1 or higher * @var integer */ - _triggerLength: 1, + _triggerLength: 3, /** * Initializes a new search. @@ -4170,7 +4170,7 @@ WCF.Search.User = WCF.Search.Base.extend({ var $listItem = this._super(item); // insert item type - $('').prependTo($listItem.children('span:eq(0)')); + if (this._includeUserGroups) $('').prependTo($listItem.children('span:eq(0)')); $listItem.data('type', item.type); return $listItem; diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index ab6bb82e18..682e40c5d3 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -239,7 +239,7 @@ class UserAction extends AbstractDatabaseObjectAction { $sql = "SELECT userID, username FROM wcf".WCF_N."_user ".$conditionBuilder; - $statement = WCF::getDB()->prepareStatement($sql, 20); /* TODO: add limit parameter */ + $statement = WCF::getDB()->prepareStatement($sql, 10); /* TODO: add limit parameter */ $statement->execute($conditionBuilder->getParameters()); while ($row = $statement->fetchArray()) { $list[] = array( -- 2.20.1