diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-08-22 18:16:55 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-08-25 11:50:19 +0200 |
commit | f33312f76773a46acf084dd93830c739e44e9962 (patch) | |
tree | 4caa766b1d11ac1087b81f2d648f59f92194c1a1 /apps/files_external | |
parent | 6202ef3258c7db707f32c0bcaa17552b92fa15eb (diff) | |
download | nextcloud-server-f33312f76773a46acf084dd93830c739e44e9962.tar.gz nextcloud-server-f33312f76773a46acf084dd93830c739e44e9962.zip |
Use AppFramework instead of custom controller
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/js/settings.js | 13 |
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 = []; |