Reset formulaire
This commit is contained in:
parent
387e906522
commit
2aaf0de974
@ -10,7 +10,7 @@
|
||||
<h1>Ajout d'utilisateurs - <small><?=$this->Service->Label?></small></h1>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-sm btn-default" href="<?=$this->url(array('module'=>'admin', 'controller'=>'user',
|
||||
<a class="btn btn-sm btn-default" href="<?=$this->url(array('module'=>'admin', 'controller'=>'user',
|
||||
'action'=>'index', 'service'=>$this->Service->Code), 'default', true)?>">
|
||||
Retour à la liste des utilisateurs</a>
|
||||
|
||||
@ -86,6 +86,7 @@ $('form[name=user]').submit(function(e){
|
||||
'<td></td>'+
|
||||
'</tr>'
|
||||
);
|
||||
$('form[name=user]').reset();
|
||||
}
|
||||
}, 'json').fail(function(){
|
||||
$('#user-msg').html("<p>Error</p>").addClass('alert alert-info');
|
||||
|
Loading…
Reference in New Issue
Block a user