Merge "Disable heights option in gallery dialog when mode is slideshow"

This commit is contained in:
jenkins-bot 2016-12-06 18:28:51 +00:00 committed by Gerrit Code Review
commit 9b4bc7a3f2

View file

@ -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' );
};
/**