Create customer on User form issue
This commit is contained in:
parent
6b53bb638c
commit
da091525b0
@ -136,7 +136,15 @@
|
||||
}
|
||||
|
||||
if (json['success']) {
|
||||
$('input[name="password_confirmation"]').after('<input name="user_id" type="hidden" value="' + json['data']['id'] + '" id="user-id">');
|
||||
unselect();
|
||||
$('input[name="email"]').parent().parent().addClass('has-error');
|
||||
$('input[name="email"]').parent().after('<p class="help-block">{{ trans('customers.error.email') }}</p>');
|
||||
$('input[name="email"]').focus();
|
||||
|
||||
$('.box-footer .btn').attr('disabled', false);
|
||||
$('.loading').remove();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -142,7 +142,15 @@
|
||||
}
|
||||
|
||||
if (json['success']) {
|
||||
$('input[name="password_confirmation"]').after('<input name="user_id" type="hidden" value="' + json['data']['id'] + '" id="user-id">');
|
||||
unselect();
|
||||
$('input[name="email"]').parent().parent().addClass('has-error');
|
||||
$('input[name="email"]').parent().after('<p class="help-block">{{ trans('customers.error.email') }}</p>');
|
||||
$('input[name="email"]').focus();
|
||||
|
||||
$('.box-footer .btn').attr('disabled', false);
|
||||
$('.loading').remove();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user