| 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: dotclear.fadeColor.beginUserMail, eColor: dotclear.fadeColor.endUserMail, steps: 50},function() { | 
|---|
| 16 |                     $(this).backgroundFade({sColor: dotclear.fadeColor.endUserMail, eColor: dotclear.fadeColor.beginUserMail}); | 
|---|
| 17 |                }); | 
|---|
| 18 |                return false; | 
|---|
| 19 |           } | 
|---|
| 20 |           return true; | 
|---|
| 21 |      }); | 
|---|
| 22 | }); | 
|---|
       
      Note: See 
TracBrowser
        for help on using the repository browser.