mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Disable heights option in gallery dialog when mode is slideshow"
This commit is contained in:
commit
9b4bc7a3f2
|
@ -359,6 +359,9 @@ ve.ui.MWGalleryDialog.prototype.getSetupProcess = function ( data ) {
|
|||
this.classesInput.setValue( classes );
|
||||
this.stylesInput.setValue( styles );
|
||||
|
||||
// Disable fields depending on mode
|
||||
this.onModeDropdownChange();
|
||||
|
||||
// Add event handlers
|
||||
this.indexLayout.connect( this, { set: 'updateDialogSize' } );
|
||||
this.searchWidget.getResults().connect( this, { choose: 'onSearchResultsChoose' } );
|
||||
|
@ -570,6 +573,9 @@ ve.ui.MWGalleryDialog.prototype.onModeDropdownChange = function () {
|
|||
|
||||
this.widthsInput.setDisabled( disabled );
|
||||
this.perrowInput.setDisabled( disabled );
|
||||
|
||||
// heights is only ignored in slideshow mode
|
||||
this.heightsInput.setDisabled( mode === 'slideshow' );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue