Commit dc4ceda2 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13519 from Sugaroverdose/fix_#13500

Do not clear fields until request return success in users admin page on user creation
parents bb3d5615 2244e0eb
......@@ -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();
});
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment