Changeset 674 for trunk/app/views/elements
- Timestamp:
- 07/24/08 14:03:01 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/elements/login.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/login.ctp
r588 r674 1 1 <div id="login"> 2 <?php echo $form->create('User', array('action'=>'login' , "onsubmit"=>"return validateLogin()")); ?>2 <?php echo $form->create('User', array('action'=>'login')); ?> 3 3 <fieldset> 4 4 <legend><?php __('Login'); ?></legend> … … 18 18 ?> 19 19 </div> 20 21 <script type="text/javascript">22 function validateLogin()23 {24 var pwd = document.getElementById("UserPwd");25 var email = document.getElementById("UserEMail");26 27 if (email.value.length < 5)28 {29 alert('Write your email');30 email.focus();31 return false;32 }33 34 if (pwd.value.length < 5)35 {36 alert('Write your password');37 pwd.focus();38 return false;39 }40 41 return true;42 }43 </script>44
