Use setReadOnly when possible
Change-Id: I410967531229ba31c985488fc73ec7e315ecfad6
This commit is contained in:
parent
0eac1464c4
commit
ba39eb0303
|
@ -196,7 +196,7 @@ ve.ui.MWLatexDialog.prototype.getSetupProcess = function ( data ) {
|
||||||
// Populate form
|
// Populate form
|
||||||
// TODO: This widget is not readable when disabled
|
// TODO: This widget is not readable when disabled
|
||||||
this.displaySelect.selectItemByData( display ).setDisabled( isReadOnly );
|
this.displaySelect.selectItemByData( display ).setDisabled( isReadOnly );
|
||||||
this.idInput.setValue( id ).setDisabled( isReadOnly );
|
this.idInput.setValue( id ).setReadOnly( isReadOnly );
|
||||||
|
|
||||||
// Add event handlers
|
// Add event handlers
|
||||||
this.input.on( 'change', this.onChangeHandler );
|
this.input.on( 'change', this.onChangeHandler );
|
||||||
|
|
Loading…
Reference in New Issue