diff options
author | Sugaroverdose <n1nj4p0w3r@gmail.com> | 2015-01-20 19:12:58 +0300 |
---|---|---|
committer | Sugaroverdose <n1nj4p0w3r@gmail.com> | 2015-01-20 23:14:41 +0300 |
commit | 2244e0eba796de61ed9a279d824f9bc6d1e1d916 (patch) | |
tree | 7c33a2bff2846b5651c906a1d90c5880199b9e85 /settings/js | |
parent | 84bb4cc2e9013eb3db8d7114a0e6eb132a723adf (diff) | |
download | nextcloud-server-2244e0eba796de61ed9a279d824f9bc6d1e1d916.tar.gz nextcloud-server-2244e0eba796de61ed9a279d824f9bc6d1e1d916.zip |
do not clear fields until request return success
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users/users.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); }); }); |