(js) Restore dot search in Contacts module

pull/101/head^2
Francis Lachapelle 2015-12-02 16:43:06 -05:00
parent af5599015b
commit 348ba65c6e
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@
<md-icon>arrow_back</md-icon>
</md-button>
<md-input-container md-no-float="md-no-float">
<input name="folderSearch" type="search" label:placeholder="Search" ng-minlength="3"/>
<input name="folderSearch" type="search" label:placeholder="Search"/>
</md-input-container>
<md-input-container flex="25">
<md-select>

View File

@ -112,7 +112,7 @@
vm.onChange = function() {
if (typeof vm.searchText !== 'undefined' && vm.searchText !== null) {
if (vm.searchText != vm.previous.searchText || vm.searchField != vm.previous.searchField) {
if (vm.searchText.length > 2 || vm.searchText.length === 0) {
if (vm.searchText.length > 2 || vm.searchText.length === 0 || vm.searchText == '.') {
// doSearch is the compiled expression of the sg-search attribute
vm.doSearch($scope, { searchText: vm.searchText, searchField: vm.searchField });
}