r106462 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106461‎ | r106462 | r106463 >
Date:18:57, 16 December 2011
Author:rmoen
Status:ok
Tags:
Comment:
add util.validateEmail address to email field enabler
Modified paths:
  • /trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js
@@ -491,7 +491,7 @@
492492
493493 validateEmail: function() {
494494 var email = $( '#mw-moodBar-emailInput' ).val();
495 - if( $.trim( email ).length > 0) { //find validate email method
 495+ if( mw.util.validateEmail( email ) ) {
496496 mb.ui.overlay.find( '.mw-moodBar-emailSubmit').prop('disabled', false);
497497 } else {
498498 mb.ui.overlay.find( '.mw-moodBar-emailSubmit').prop('disabled', true);

Status & tagging log