|
|
|
@ -467,6 +467,18 @@ $(document).ready(function () { |
|
|
|
|
var addedGroups = result.data.groups; |
|
|
|
|
UserList.availableGroups = $.unique($.merge(UserList.availableGroups, addedGroups)); |
|
|
|
|
} |
|
|
|
|
if (result.data.homeExists){ |
|
|
|
|
OC.Notification.hide(); |
|
|
|
|
OC.Notification.show(t('settings', 'Warning: Home directory for user "{user}" already exists', {user: result.data.username})); |
|
|
|
|
if (UserList.notificationTimeout){ |
|
|
|
|
window.clearTimeout(UserList.notificationTimeout); |
|
|
|
|
} |
|
|
|
|
UserList.notificationTimeout = window.setTimeout( |
|
|
|
|
function(){ |
|
|
|
|
OC.Notification.hide(); |
|
|
|
|
UserList.notificationTimeout = null; |
|
|
|
|
}, 10000); |
|
|
|
|
} |
|
|
|
|
if($('tr[data-uid="' + username + '"]').length === 0) { |
|
|
|
|
UserList.add(username, username, result.data.groups, null, 'default', true); |
|
|
|
|
} |
|
|
|
|