Skip to content
Snippets Groups Projects
Commit faebee5f authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Turn async off when fetching users to make sure the users get removed from the select form

parent 9eb91a11
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ OC.Share={
html += '</div>';
$(html).appendTo(appendTo);
if (OC.Share.usersAndGroups.length < 1) {
$.getJSON(OC.filePath('files_sharing', 'ajax', 'userautocomplete.php'), function(users) {
$.ajax({type: 'GET', url: OC.filePath('files_sharing', 'ajax', 'userautocomplete.php'), async: false, success: function(users) {
if (users) {
OC.Share.usersAndGroups = users;
$.each(users, function(index, user) {
......@@ -90,7 +90,7 @@ OC.Share={
});
$('#share_with').trigger('liszt:updated');
}
});
}});
} else {
$.each(OC.Share.usersAndGroups, function(index, user) {
$(user).appendTo('#share_with');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment