diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-11 20:39:48 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-11 20:39:48 -0400 |
commit | faebee5f25ba58a346f7bbf685ce535a5367f9d5 (patch) | |
tree | 16e1f84e35953390a1ce49b7478244a53f208a7a /apps/files_sharing | |
parent | 9eb91a111d0c5ede1a0524bd611357b2910be720 (diff) | |
download | nextcloud-server-faebee5f25ba58a346f7bbf685ce535a5367f9d5.tar.gz nextcloud-server-faebee5f25ba58a346f7bbf685ce535a5367f9d5.zip |
Turn async off when fetching users to make sure the users get removed from the select form
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/share.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index faa6c52b2aa..6f9468c4e79 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -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'); |