summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-08-29 11:27:23 -0400
committerLukas Reschke <lukas@owncloud.com>2014-09-08 18:52:14 +0200
commit9b99c81a9d36b83c90c36437668701e4794e0661 (patch)
treeb01c60264c28de40340c32a904fb644ffa98c980 /settings/js
parent96bb1f7f450608823885ce7b6ecbfdb95cbdb822 (diff)
downloadnextcloud-server-9b99c81a9d36b83c90c36437668701e4794e0661.tar.gz
nextcloud-server-9b99c81a9d36b83c90c36437668701e4794e0661.zip
Using countUsers method to return true count of users
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/groups.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 84142a1a0d0..298879b503b 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -249,12 +249,23 @@ GroupList = {
getElementGID: function (element) {
return ($(element).closest('li').data('gid') || '').toString();
+ },
+ getEveryoneCount: function () {
+ $.ajax({
+ type: "GET",
+ dataType: "json",
+ url: OC.generateUrl('/settings/ajax/geteveryonecount')
+ }).success(function (data) {
+ $('#everyonegroup').data('usercount', data.count);
+ $('#everyonecount').text(data.count);
+ });
}
};
$(document).ready( function () {
$userGroupList = $('#usergrouplist');
GroupList.initDeleteHandling();
+ GroupList.getEveryoneCount();
// Display or hide of Create Group List Element
$('#newgroup-form').hide();