mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
VE integration: Remove "Warning:" label before CAPTCHA
It doesn't add anything and looks silly. https://phabricator.wikimedia.org/F31677965 Change-Id: I94641a227d26622846ea8b300e8a3e9eb300b651
This commit is contained in:
parent
a9093fd482
commit
da4c75e387
|
@ -48,7 +48,7 @@ mw.libs.ve.targetLoader.addPlugin( function () {
|
|||
if ( self.widgetId ) {
|
||||
window.grecaptcha.reset( self.widgetId );
|
||||
} else {
|
||||
target.saveDialog.showMessage( 'api-save-error', $container );
|
||||
target.saveDialog.showMessage( 'api-save-error', $container, { wrap: false } );
|
||||
self.widgetId = window.grecaptcha.render( $container[ 0 ], {
|
||||
sitekey: siteKey,
|
||||
callback: function () {
|
||||
|
|
|
@ -110,7 +110,7 @@ mw.libs.ve.targetLoader.addPlugin( function () {
|
|||
|
||||
// ProcessDialog's error system isn't great for this yet.
|
||||
target.saveDialog.clearMessage( 'api-save-error' );
|
||||
target.saveDialog.showMessage( 'api-save-error', $captchaDiv );
|
||||
target.saveDialog.showMessage( 'api-save-error', $captchaDiv, { wrap: false } );
|
||||
target.saveDialog.popPending();
|
||||
|
||||
// Emit event for tracking. TODO: This is a bad design
|
||||
|
|
Loading…
Reference in a new issue