diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-21 20:05:17 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-21 20:05:17 +0100 |
commit | dc4ceda2f5d1c8007ffd9b5cacbd794f06b1957d (patch) | |
tree | 799f30d4fc58d74af87687c4498bb0a75dcc5e4b | |
parent | bb3d56155b1e9b1b5022eb0e774f3a4560cdedb4 (diff) | |
parent | 2244e0eba796de61ed9a279d824f9bc6d1e1d916 (diff) | |
download | nextcloud-server-dc4ceda2f5d1c8007ffd9b5cacbd794f06b1957d.tar.gz nextcloud-server-dc4ceda2f5d1c8007ffd9b5cacbd794f06b1957d.zip |
Merge pull request #13519 from Sugaroverdose/fix_#13500
Do not clear fields until request return success in users admin page on user creation
-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(); }); }); |