diff options
author | bodo <bodo@europa.frickelware.net> | 2016-05-29 15:13:20 +0300 |
---|---|---|
committer | bodo <bodo@europa.frickelware.net> | 2016-05-31 18:58:37 +0300 |
commit | 54d396b0dfca6e74eff16c0686d1cfd35df1a578 (patch) | |
tree | a8ef8eb6dff67c3e6f00333024c3dc0c350d2aec /js | |
parent | 7dda6be38a318d2baf19c94c9c3380a0f0c9cd55 (diff) |
display only "display name" in user pick list
Diffstat (limited to 'js')
-rw-r--r-- | js/create_edit.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/create_edit.js b/js/create_edit.js index 970729b3..ca07ecc2 100644 --- a/js/create_edit.js +++ b/js/create_edit.js @@ -249,11 +249,11 @@ $(document).ready(function () { $('.live-search-box-user').on('keyup', function(){ var searchTerm = $(this).val().toLowerCase(); $('.live-search-list-user li').each(function(){ - if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) { + if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) { $(this).show(); } else { - $(this).hide(); - } + $(this).hide(); + } }); }); @@ -262,7 +262,7 @@ $(document).ready(function () { }); $('.live-search-box-group').on('keyup', function(){ - var searchTerm = $(this).val().toLowerCase(); + var searchTerm = $(this).val().toLowerCase(); $('.live-search-list-group li').each(function(){ if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) { $(this).show(); |