mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Fix showing caption and alt text fields in media and gallery dialogs"
This commit is contained in:
commit
6e72dd35dc
|
@ -248,7 +248,7 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
|
|||
highlightedCaptionFieldset = new OO.ui.FieldsetLayout( {
|
||||
label: ve.msg( 'visualeditor-dialog-media-content-section' )
|
||||
} );
|
||||
highlightedCaptionFieldset.addItems( highlightedCaptionField );
|
||||
highlightedCaptionFieldset.addItems( [ highlightedCaptionField ] );
|
||||
|
||||
highlightedAltTextField = new OO.ui.FieldLayout( this.highlightedAltTextInput, {
|
||||
align: 'top'
|
||||
|
@ -256,7 +256,7 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
|
|||
highlightedAltTextFieldset = new OO.ui.FieldsetLayout( {
|
||||
label: ve.msg( 'visualeditor-dialog-media-alttext-section' )
|
||||
} );
|
||||
highlightedAltTextFieldset.addItems( highlightedAltTextField );
|
||||
highlightedAltTextFieldset.addItems( [ highlightedAltTextField ] );
|
||||
|
||||
// Search panel
|
||||
this.searchWidget = new mw.widgets.MediaSearchWidget( {
|
||||
|
|
|
@ -232,7 +232,7 @@ ve.ui.MWMediaDialog.prototype.initialize = function () {
|
|||
help: ve.msg( 'visualeditor-dialog-media-content-section-help' ),
|
||||
classes: [ 've-ui-mwMediaDialog-caption-fieldset' ]
|
||||
} );
|
||||
this.captionFieldset.addItems( captionField );
|
||||
this.captionFieldset.addItems( [ captionField ] );
|
||||
|
||||
// Alt text
|
||||
this.altTextInput = new OO.ui.TextInputWidget( {
|
||||
|
@ -247,7 +247,7 @@ ve.ui.MWMediaDialog.prototype.initialize = function () {
|
|||
label: ve.msg( 'visualeditor-dialog-media-alttext-section' ),
|
||||
help: ve.msg( 'visualeditor-dialog-media-alttext-section-help' )
|
||||
} );
|
||||
altTextFieldset.addItems( altTextField );
|
||||
altTextFieldset.addItems( [ altTextField ] );
|
||||
|
||||
// Advanced settings
|
||||
|
||||
|
|
Loading…
Reference in a new issue