getSelectedItem() -> findSelectedItem()
Change-Id: I6ddf1ab488774f22fd566846c38483dcaf35ab27
This commit is contained in:
parent
363b8cda99
commit
271a149b5f
|
@ -254,7 +254,7 @@ ve.ui.MWLatexDialog.prototype.updateMwData = function ( mwData ) {
|
||||||
ve.ui.MWLatexDialog.super.prototype.updateMwData.call( this, mwData );
|
ve.ui.MWLatexDialog.super.prototype.updateMwData.call( this, mwData );
|
||||||
|
|
||||||
// Get data from dialog
|
// Get data from dialog
|
||||||
display = this.displaySelect.getSelectedItem().getData();
|
display = this.displaySelect.findSelectedItem().getData();
|
||||||
id = this.idInput.getValue();
|
id = this.idInput.getValue();
|
||||||
|
|
||||||
// Update attributes
|
// Update attributes
|
||||||
|
|
|
@ -116,7 +116,7 @@ ve.ui.MWLatexInspector.prototype.updateMwData = function ( mwData ) {
|
||||||
// Parent method
|
// Parent method
|
||||||
ve.ui.MWLatexInspector.super.prototype.updateMwData.call( this, mwData );
|
ve.ui.MWLatexInspector.super.prototype.updateMwData.call( this, mwData );
|
||||||
|
|
||||||
display = this.displaySelect.getSelectedItem().getData();
|
display = this.displaySelect.findSelectedItem().getData();
|
||||||
id = this.idInput.getValue();
|
id = this.idInput.getValue();
|
||||||
|
|
||||||
mwData.attrs.display = display !== 'default' ? display : undefined;
|
mwData.attrs.display = display !== 'default' ? display : undefined;
|
||||||
|
|
Loading…
Reference in New Issue