diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/users.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/users.js index de73f6333a..f2c6b7c1fc 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/users.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/users.js @@ -120,15 +120,16 @@ module.controller('UserListCtrl', function($scope, realm, User) { $scope.realm = realm; $scope.searchQuery = function() { $scope.searchLoaded = false; + $scope.currentSearch = $scope.search; + + var params = { realm: realm.id }; if ($scope.search) { - $scope.currentSearch = $scope.search; - $scope.users = User.query({ realm: realm.id, search : $scope.search }, function() { - $scope.searchLoaded = true; - }); - } else { - $scope.currentSearch = null; - $scope.users = null; + params.search = $scope.search; } + + $scope.users = User.query(params, function() { + $scope.searchLoaded = true; + }); }; }); diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-list.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-list.html index 16a16972e1..a3b193671a 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-list.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-list.html @@ -21,7 +21,7 @@
-