Rev | Line | |
---|
[0] | 1 | $(function() { |
---|
| 2 | if ($('#new_pwd').length == 0) { |
---|
| 3 | return; |
---|
| 4 | } |
---|
[2566] | 5 | |
---|
[0] | 6 | var user_email = $('#user_email').val(); |
---|
[2566] | 7 | |
---|
[0] | 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(); |
---|
[2101] | 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}); |
---|
[0] | 17 | }); |
---|
| 18 | return false; |
---|
| 19 | } |
---|
| 20 | return true; |
---|
| 21 | }); |
---|
[2566] | 22 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.