Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js |
— | — | @@ -506,22 +506,20 @@ |
507 | 507 | }, mw.msg('articlefeedback-form-panel-helpimprove-privacy') |
508 | 508 | ); |
509 | 509 | return mw.html.escape( mw.msg( 'articlefeedback-form-panel-helpimprove-note') ) |
510 | | - .replace( /\$1/, link ); |
| 510 | + .replace( /\$1/, mw.message( 'parentheses', link ).toString() ); |
511 | 511 | }) |
512 | 512 | .end() |
513 | 513 | .find( '.articleFeedback-helpimprove-email' ) |
514 | 514 | .attr( 'placeholder', mw.msg( 'articlefeedback-form-panel-helpimprove-email-placeholder' ) ) |
515 | 515 | .placeholder() // back. compat. for older browsers |
516 | | - |
517 | | - // Basically from mediawiki.special.preferences.js |
518 | 516 | .one( 'blur', function() { |
| 517 | + var $el = $(this), val = $el.val(); |
519 | 518 | if ( context.$ui.find( '.articleFeedback-helpimprove-email-validity' ).length === 0 ) { |
520 | | - $(this).after( '<div class="articleFeedback-helpimprove-email-validity"></div>' ); |
| 519 | + $el.after( '<div class="articleFeedback-helpimprove-email-validity"></div>' ); |
521 | 520 | } |
522 | | - updateMailValidityLabel( $(this).val(), context ); |
523 | | - mw.log(context); |
524 | | - $(this).keyup( function() { |
525 | | - updateMailValidityLabel( $(this).val(), context ); |
| 521 | + updateMailValidityLabel( val, context ); |
| 522 | + $el.keyup( function() { |
| 523 | + updateMailValidityLabel( val, context ); |
526 | 524 | } ); |
527 | 525 | } ) |
528 | 526 | .end() |