Changeset 1520 in subversion


Ignore:
Timestamp:
Jun 12, 2008 10:39:27 AM (5 years ago)
Author:
till
Message:
  • jqueryfying code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-jquery/program/js/app.js

    r1519 r1520  
    314314        var input_pass = rcube_find_object('rcmloginpwd'); 
    315315        if (input_user) 
    316           input_user.onkeyup = function(e){ return rcmail.login_user_keyup(e); }; 
    317         if (input_user && input_user.value=='') 
     316          $(input_user).keyup = function(e){ return rcmail.login_user_keyup(e); }; 
     317        if (input_user && $(input_user).val() == '') 
    318318          input_user.focus(); 
    319319        else if (input_pass) 
    320           input_pass.focus(); 
     320          $(input_pass).focus(); 
    321321           
    322322        this.enable_command('login', true); 
Note: See TracChangeset for help on using the changeset viewer.