Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js |
— | — | @@ -491,7 +491,7 @@ |
492 | 492 | |
493 | 493 | validateEmail: function() { |
494 | 494 | var email = $( '#mw-moodBar-emailInput' ).val(); |
495 | | - if( $.trim( email ).length > 0) { //find validate email method |
| 495 | + if( mw.util.validateEmail( email ) ) { |
496 | 496 | mb.ui.overlay.find( '.mw-moodBar-emailSubmit').prop('disabled', false); |
497 | 497 | } else { |
498 | 498 | mb.ui.overlay.find( '.mw-moodBar-emailSubmit').prop('disabled', true); |