fix to pattern extraction logic
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/a1c96299 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/a1c96299 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/a1c96299 Branch: refs/heads/grouper-integration Commit: a1c9629914ccf8bb9773ca0c7bb8216a502f45b9 Parents: fb7add7 Author: Jeff Kinnison <[email protected]> Authored: Thu Jul 7 13:40:45 2016 -0400 Committer: Jeff Kinnison <[email protected]> Committed: Thu Jul 7 13:40:45 2016 -0400 ---------------------------------------------------------------------- public/js/sharing/share.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/a1c96299/public/js/sharing/share.js ---------------------------------------------------------------------- diff --git a/public/js/sharing/share.js b/public/js/sharing/share.js index 07c341a..86d3b9a 100755 --- a/public/js/sharing/share.js +++ b/public/js/sharing/share.js @@ -268,11 +268,11 @@ $(function() { $target = $(e.target); pattern = $target.val().toLowerCase(); if (!pattern || pattern === '') { - re = /.+/; + pattern = /.+/; } visible = ($('.show-groups').hasClass('btn-primary') ? '.group-thumbnail' : '.user-thumbnail'); $users = $('#share-box-users').children(visible); - userFilter($users, re); + userFilter($users, pattern); return false; });
