Bug sur le focus au chargement de la page de login
This commit is contained in:
		
							parent
							
								
									b7e10ba679
								
							
						
					
					
						commit
						3f32183fe5
					
				|  | @ -135,11 +135,11 @@ if (!$charset) $charset="UTF-8"; | ||||||
| 
 | 
 | ||||||
|     </div> |     </div> | ||||||
|     <script> |     <script> | ||||||
|     document.forms['loginform'].username.focus(); |     $('#username').focus(); | ||||||
| 
 | 
 | ||||||
|     function logmein(){ |     function logmein(){ | ||||||
|       if ( $('#username').val() =='' || $('#password').val() =='' ) { |       if ( $('#username').val() =='' || $('#password').val() =='' ) { | ||||||
|         alert('<?php __("Need a login and a password"); ?>'); |         alert("<?php __("Need a login and a password"); ?>"); | ||||||
|         return false; |         return false; | ||||||
|       } |       } | ||||||
|       return true; |       return true; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Alan Garcia
						Alan Garcia