diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 87d8b1801c1..f21c660b41f 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -773,7 +773,6 @@ $(document).ready(function () { return false; } var groups = $('#newusergroups').val() || []; - $('#newuser').get(0).reset(); $.post( OC.generateUrl('/settings/users/users'), { @@ -801,6 +800,8 @@ $(document).ready(function () { GroupList.incEveryoneCount(); }).fail(function(result, textStatus, errorThrown) { OC.dialogs.alert(result.responseJSON.message, t('settings', 'Error creating user')); + }).success(function(){ + $('#newuser').get(0).reset(); }); });