summaryrefslogtreecommitdiffstats
path: root/settings/js/users/groups.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-17 21:40:28 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:57 +0200
commitdea7f457823e5b1a18f4165ded98baa0815ae79e (patch)
treee069178e13ce322485ed33046d618dcc8edd4bc2 /settings/js/users/groups.js
parent7b8935abdacfa25c55738b0395440c84bf86ffbb (diff)
downloadnextcloud-server-dea7f457823e5b1a18f4165ded98baa0815ae79e.tar.gz
nextcloud-server-dea7f457823e5b1a18f4165ded98baa0815ae79e.zip
stick with current group when the filter is used
Diffstat (limited to 'settings/js/users/groups.js')
-rw-r--r--settings/js/users/groups.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 4c555bd4c86..e62dfd9dff7 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -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();
@@ -28,6 +30,10 @@
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();
@@ -135,6 +141,7 @@
},
showGroup: function (gid) {
+ GroupList.activeGID = gid;
UserList.empty();
UserList.update(gid);
$('#app-navigation li').removeClass('active');