summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-29 16:29:58 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-06-29 16:29:58 -0400
commit05cb94801ad9d73e50b800b6a940e4fd15518b40 (patch)
treefaf267052b639132c1513ada25b4cd98c2bf627d /settings
parent719c7f7f6ebfe53a73eeffb07c6c23d6a788e711 (diff)
downloadnextcloud-server-05cb94801ad9d73e50b800b6a940e4fd15518b40.tar.gz
nextcloud-server-05cb94801ad9d73e50b800b6a940e4fd15518b40.zip
Add new group to other user's group select forms
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 0de0d1df3bc..18f4e9f209c 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -40,7 +40,13 @@ $(document).ready(function(){
}else{
checkHandeler=false;
}
+ var addGroup = function(group) {
+ $('select[multiple]').each(function(index, element) {
+ $(element).append('<option value="'+group+'">'+group+'</option>');
+ })
+ };
element.multiSelect({
+ createCallback:addGroup,
createText:'add group',
checked:checked,
oncheck:checkHandeler,