]> source.dussan.org Git - nextcloud-server.git/commitdiff
stick with current group when the filter is used
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 17 Apr 2014 19:40:28 +0000 (21:40 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:57 +0000 (12:53 +0200)
settings/js/users/filter.js
settings/js/users/groups.js

index 3b04a8750cff77fda5dcb31d13beccb9da745487..456c51376b907b90ca1c784e221ad7a4bd3fce44 100644 (file)
@@ -59,7 +59,7 @@ UserManagementFilter.prototype.init = function() {
  */
 UserManagementFilter.prototype.run = function() {
        this.userList.empty();
-       this.userList.update();
+       this.userList.update(GroupList.getCurrentGID());
        this.groupList.empty();
        this.groupList.update();
 };
index 4c555bd4c86657db8693c15e80fa7fb233d55830..e62dfd9dff73ee03c82e7a93affba66392d4e005 100644 (file)
@@ -6,6 +6,8 @@
  */
 
  var GroupList = {
+       activeGID: '',
+
        addGroup: function(gid, usercount) {
                var li = $('li[data-gid]').last().clone();
                var ul = $('li[data-gid]').first().parent();
                groupLiElement.find('span[class=usercount]').first().text(usercount);
        },
 
+       getCurrentGID: function() {
+               return GroupList.activeGID;
+       },
+
        sortGroups: function(usercount) {
                var lis = $('li[data-gid]').filterAttr('data-usercount', usercount.toString()).get();
                var ul = $(lis).first().parent();
        },
 
        showGroup: function (gid) {
+               GroupList.activeGID = gid;
                UserList.empty();
                UserList.update(gid);
                $('#app-navigation li').removeClass('active');