Revision 3685:3f1bacac1ac3,
484 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
Switch from jQuery background fade plugin to CSS3 animation (plugin removed from distribution)
|
Line | |
---|
1 | $(function() { |
---|
2 | if ($('#new_pwd').length == 0) { |
---|
3 | return; |
---|
4 | } |
---|
5 | var user_email = $('#user_email').val(); |
---|
6 | $('#user-form').submit(function() { |
---|
7 | var e = this.elements['cur_pwd']; |
---|
8 | if (e.value != '') { |
---|
9 | return true; |
---|
10 | } |
---|
11 | if ($('#user_email').val() != user_email || $('#new_pwd').val() != '') { |
---|
12 | $(e).addClass('missing').focusout(function() { |
---|
13 | $(this).removeClass('missing') |
---|
14 | }); |
---|
15 | e.focus(); |
---|
16 | return false; |
---|
17 | } |
---|
18 | return true; |
---|
19 | }); |
---|
20 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.