summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/js/settings.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 27ed0254dd3..6c287d6a760 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -233,10 +233,17 @@ $(document).ready(function() {
}
},
initSelection: function(element, callback) {
+ var users = {};
+ users['users'] = [];
+ var toSplit = element.val().split(",");
+ for (var i = 0; i < toSplit.length; i++) {
+ users['users'].push(toSplit[i]);
+ }
+
$.ajax(OC.generateUrl('displaynames'), {
- data: {
- users: element.val().split(",")
- },
+ type: 'POST',
+ contentType: 'application/json',
+ data: JSON.stringify(users),
dataType: "json"
}).done(function(data) {
var results = [];