mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "Save dialog: Show reload link next to FancyCaptchas"
This commit is contained in:
commit
9e730bf528
|
@ -314,6 +314,7 @@
|
|||
"spamprotectionmatch",
|
||||
"spamprotectiontext",
|
||||
"summary-preview",
|
||||
"fancycaptcha-reload-text",
|
||||
"visualeditor-loadwarning",
|
||||
"visualeditor-loadwarning-token",
|
||||
"visualeditor-savedialog-identify-anon",
|
||||
|
|
|
@ -765,12 +765,15 @@ ve.init.mw.ViewPageTarget.prototype.onSaveErrorCaptcha = function ( editApi ) {
|
|||
document.createTextNode( mw.msg( 'colon-separator' ) )
|
||||
);
|
||||
if ( editApi.captcha.url ) { // FancyCaptcha
|
||||
mw.loader.load( 'ext.confirmEdit.fancyCaptcha' );
|
||||
$captchaParagraph.append(
|
||||
$( $.parseHTML( mw.message( 'fancycaptcha-edit' ).parse() ) )
|
||||
.filter( 'a' ).attr( 'target', '_blank' ).end()
|
||||
);
|
||||
$captchaDiv.append(
|
||||
$( '<img>' ).attr( 'src', editApi.captcha.url )
|
||||
$( '<img>' ).attr( 'src', editApi.captcha.url ).addClass( 'fancycaptcha-image' ),
|
||||
' ',
|
||||
$( '<a>' ).addClass( 'fancycaptcha-reload' ).text( mw.msg( 'fancycaptcha-reload-text' ) )
|
||||
);
|
||||
} else if ( editApi.captcha.type === 'simple' || editApi.captcha.type === 'math' ) {
|
||||
// SimpleCaptcha and MathCaptcha
|
||||
|
|
Loading…
Reference in a new issue