exoplatform/integration — pull request #120 by tmarwen (2014-09-10 16:59:47+00:00)
Title: INTEG-304 | [QuickSearch] Last characters are sometimes trancated from s...

...earch query
**Problem analysis:**
* Sometimes words in quicksearch input are trancated and not the full word is used. This is caused by delay verification logic between _keyup_ events:
```javascript
if (query.length <= 2)
{
quickSearch(); //search for the text just being typed in
} else if (nextKeyup - firstKeyup >= 1000){
firstKeyup = nextKeyup;
quickSearch(); //search for the text just being typed in
} else skipKeyup ++;
if (skipKeyup == 2)
{
skipKeyup = 0;
quickSearch();
firstKeyup = nextKeyup;
}
}
```

**Fix Description:**
* Execute the search function within a timeout delay to avoid searching as user enters new keys though ensure whole world is searched.
```javascript
searchTimeout = setTimeout(function() {
isLoading = true;
quickSearch(query); //search for the text just being typed in
}, delay);
```