Merge branch 'joyclark-autocomplete-click-behavior' into develop

This commit is contained in:
Blade Barringer
2015-05-08 08:45:06 -05:00
3 changed files with 22 additions and 3 deletions

View File

@@ -232,6 +232,11 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
return user.indexOf(text) == 0;
}
$scope.performCompletion = function(msg) {
$scope.autoComplete(msg);
$scope.query = null;
}
$scope.addNewUser = function(user) {
if($.inArray(user.user,$scope.usernames) == -1) {
user.username = user.user;