do not clear fields until request return success

remotes/origin/create-share-target-reuse
Sugaroverdose 10 years ago
parent 84bb4cc2e9
commit 2244e0eba7
  1. 3
      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();
});
});

Loading…
Cancel
Save