mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +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( {
|
highlightedCaptionFieldset = new OO.ui.FieldsetLayout( {
|
||||||
label: ve.msg( 'visualeditor-dialog-media-content-section' )
|
label: ve.msg( 'visualeditor-dialog-media-content-section' )
|
||||||
} );
|
} );
|
||||||
highlightedCaptionFieldset.addItems( highlightedCaptionField );
|
highlightedCaptionFieldset.addItems( [ highlightedCaptionField ] );
|
||||||
|
|
||||||
highlightedAltTextField = new OO.ui.FieldLayout( this.highlightedAltTextInput, {
|
highlightedAltTextField = new OO.ui.FieldLayout( this.highlightedAltTextInput, {
|
||||||
align: 'top'
|
align: 'top'
|
||||||
|
@ -256,7 +256,7 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
|
||||||
highlightedAltTextFieldset = new OO.ui.FieldsetLayout( {
|
highlightedAltTextFieldset = new OO.ui.FieldsetLayout( {
|
||||||
label: ve.msg( 'visualeditor-dialog-media-alttext-section' )
|
label: ve.msg( 'visualeditor-dialog-media-alttext-section' )
|
||||||
} );
|
} );
|
||||||
highlightedAltTextFieldset.addItems( highlightedAltTextField );
|
highlightedAltTextFieldset.addItems( [ highlightedAltTextField ] );
|
||||||
|
|
||||||
// Search panel
|
// Search panel
|
||||||
this.searchWidget = new mw.widgets.MediaSearchWidget( {
|
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' ),
|
help: ve.msg( 'visualeditor-dialog-media-content-section-help' ),
|
||||||
classes: [ 've-ui-mwMediaDialog-caption-fieldset' ]
|
classes: [ 've-ui-mwMediaDialog-caption-fieldset' ]
|
||||||
} );
|
} );
|
||||||
this.captionFieldset.addItems( captionField );
|
this.captionFieldset.addItems( [ captionField ] );
|
||||||
|
|
||||||
// Alt text
|
// Alt text
|
||||||
this.altTextInput = new OO.ui.TextInputWidget( {
|
this.altTextInput = new OO.ui.TextInputWidget( {
|
||||||
|
@ -247,7 +247,7 @@ ve.ui.MWMediaDialog.prototype.initialize = function () {
|
||||||
label: ve.msg( 'visualeditor-dialog-media-alttext-section' ),
|
label: ve.msg( 'visualeditor-dialog-media-alttext-section' ),
|
||||||
help: ve.msg( 'visualeditor-dialog-media-alttext-section-help' )
|
help: ve.msg( 'visualeditor-dialog-media-alttext-section-help' )
|
||||||
} );
|
} );
|
||||||
altTextFieldset.addItems( altTextField );
|
altTextFieldset.addItems( [ altTextField ] );
|
||||||
|
|
||||||
// Advanced settings
|
// Advanced settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue