| Revision 1516:eb9653ff7459,
            510 bytes
            checked in by Anne Kozlika <kozlika@…>, 12 years ago
            (diff) | 
        
        
          | 
               
Antispam: pardon my fault, css should be in plugin css only. 
Messages: colors change. 
 
           | 
        
      
      
        
  | Line |   | 
|---|
| 1 | $(function() { | 
|---|
| 2 |      if ($('#new_pwd').length == 0) { | 
|---|
| 3 |           return; | 
|---|
| 4 |      } | 
|---|
| 5 |       | 
|---|
| 6 |      var user_email = $('#user_email').val(); | 
|---|
| 7 |       | 
|---|
| 8 |      $('#user-form').submit(function() { | 
|---|
| 9 |           var e = this.elements['cur_pwd']; | 
|---|
| 10 |           if (e.value != '') { | 
|---|
| 11 |                return true; | 
|---|
| 12 |           } | 
|---|
| 13 |           if ($('#user_email').val() != user_email || $('#new_pwd').val() != '') { | 
|---|
| 14 |                e.focus(); | 
|---|
| 15 |                $(e).backgroundFade({sColor:'#ffffff',eColor:'#ffbaba',steps:50},function() { | 
|---|
| 16 |                     $(this).backgroundFade({sColor:'#ffbaba',eColor:'#ffffff'}); | 
|---|
| 17 |                }); | 
|---|
| 18 |                return false; | 
|---|
| 19 |           } | 
|---|
| 20 |           return true; | 
|---|
| 21 |      }); | 
|---|
| 22 | }); | 
|---|
       
      Note: See 
TracBrowser
        for help on using the repository browser.