Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-02 13:14:36 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-02 13:14:36 +0300
commit8944cb539ef565db4bb9f05d225449afa0d20cfb (patch)
tree7889215757fe4a0e250350c90f8bedaec6035960 /settings/js
parentccbdcf0ab33e943e6bac45a2ae3b602ed0593103 (diff)
parentb2dd5cb61655b6ca82e8fd1fb117b42301d28c2b (diff)
Merge pull request #19510 from owncloud/json-grouplist-sharing-exclude
save excluded groups in json format
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 7117c7b46cf..9f7133c6571 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -23,11 +23,7 @@ $(document).ready(function(){
OC.Settings.setupGroupsSelect($(element));
$(element).change(function(ev) {
var groups = ev.val || [];
- if (groups.length > 0) {
- groups = ev.val.join(','); // FIXME: make this JSON
- } else {
- groups = '';
- }
+ groups = JSON.stringify(groups);
OC.AppConfig.setValue('core', $(this).attr('name'), groups);
});
});