(js) Select newly added user in ACLs editor

This commit is contained in:
Francis Lachapelle
2015-10-27 11:28:42 -04:00
parent 09e354ed0e
commit 4172c216f5
2 changed files with 5 additions and 2 deletions
@@ -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);
});