Improve Admin/user , use new alert box
This commit is contained in:
parent
8c198bf1ee
commit
3d9b5cc4f0
1 changed files with 2 additions and 2 deletions
|
|
@ -91,12 +91,12 @@ echo HtmlInput::button_action(_("Fermer"), "$('create_user').style.display='none
|
|||
<script>
|
||||
function check_form() {
|
||||
if ($F('input_login') == "") {
|
||||
alert('<?php echo _('Le login ne peut être vide') ?>');
|
||||
smoke.alert('<?php echo _('Le login ne peut être vide') ?>');
|
||||
$('input_login').setStyle({border:"red solid 2px"});
|
||||
return false;
|
||||
}
|
||||
if ($F('input_password') == "") {
|
||||
alert('<?php echo _('Le mot de passe ne peut être vide') ?>');
|
||||
smoke.alert('<?php echo _('Le mot de passe ne peut être vide') ?>');
|
||||
$('input_password').setStyle({border:"red solid 2px"});
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue