(js) Select newly added user in ACLs editor

This commit is contained in:
Francis Lachapelle committed 2015-10-27 11:28:42 -04:00
1 parent 09e354ed0e
commit 4172c216f5
2 files changed
+5 -2

No files matched your search

@@ -59,9 +59,12 @@
function addUser(data) {
if (data) {
folder.$acl.$addUser(data).then(function() {
folder.$acl.$addUser(data).then(function(user) {
vm.userToAdd = '';
vm.searchText = '';
vm.selectedUid = null;
if (user)
selectUser(user);
}, function(error) {
Dialog.alert(l('Warning'), error);
});