summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-20 17:18:40 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-20 17:18:40 +0200
commitbf9b6e9ccc6b2677247aa0a8348337248e7cd25e (patch)
treeb3ad688929494f745ee6b26b089f9230b382768a /settings
parentea79ff191c084e12670ed9800eae498d2c731c34 (diff)
downloadnextcloud-server-bf9b6e9ccc6b2677247aa0a8348337248e7cd25e.tar.gz
nextcloud-server-bf9b6e9ccc6b2677247aa0a8348337248e7cd25e.zip
don't show label 'add group' for subadmins and remove some debug code
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index f1fb0f5f6df..c184db43748 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -83,7 +83,6 @@ $(document).ready(function(){
}
function applyMultiplySelect(element){
- console.log(element);
var checked=[];
var user=element.data('username');
if($(element).attr('class') == 'groupsselect'){
@@ -114,9 +113,15 @@ $(document).ready(function(){
}
})
};
+ var label;
+ if(isadmin){
+ label = t('files', 'add group');
+ }else{
+ label = null;
+ }
element.multiSelect({
createCallback:addGroup,
- createText:'add group',
+ createText:label,
checked:checked,
oncheck:checkHandeler,
onuncheck:checkHandeler,
@@ -142,8 +147,6 @@ $(document).ready(function(){
};
var addSubAdmin = function(group) {
- console.log('addSubAdmin called');
- console.log(group);
$('select[multiple]').each(function(index, element) {
if ($(element).find('option[value="'+group +'"]').length == 0) {
$(element).append('<option value="'+group+'">'+group+'</option>');
@@ -294,7 +297,6 @@ $(document).ready(function(){
}
else {
groups = result.data.groups;
- console.log(groups);
var tr=$('#content table tbody tr').first().clone();
tr.attr('data-uid',username);
tr.find('td.name').text(username);