mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Don't update image model twice"
This commit is contained in:
commit
a66c3147cb
|
@ -526,22 +526,11 @@ ve.ui.MWMediaEditDialog.prototype.applyChanges = function () {
|
|||
this.imageModel.setAltText(
|
||||
this.altTextInput.getValue()
|
||||
);
|
||||
|
||||
this.imageModel.setCaptionDocument(
|
||||
this.captionSurface.getSurface().getModel().getDocument()
|
||||
);
|
||||
|
||||
if ( this.typeInput.getSelectedItem() ) {
|
||||
this.imageModel.setType(
|
||||
this.typeInput.getSelectedItem().getData()
|
||||
);
|
||||
}
|
||||
if ( this.positionCheckbox.getValue() && this.positionInput.getSelectedItem() ) {
|
||||
this.imageModel.setAlignment(
|
||||
this.positionInput.getSelectedItem().getData()
|
||||
);
|
||||
}
|
||||
this.imageModel.toggleBorder( this.borderCheckbox.getValue() );
|
||||
|
||||
// Check if the image node changed from inline to block or
|
||||
// vise versa
|
||||
if ( this.mediaNode.type !== this.imageModel.getImageNodeType() ) {
|
||||
|
|
Loading…
Reference in a new issue