mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-14 10:04:52 +00:00
Change confusing property name in AddParameterPage
This kept confusing me. This is not an "input field", but a layout container. Change-Id: I77d8ddd4635c21512a5800f64e13e76fe08c3091
This commit is contained in:
parent
51ad403117
commit
074a295a03
|
@ -51,7 +51,7 @@ ve.ui.MWAddParameterPage = function VeUiMWAddParameterPage( parameter, name, con
|
|||
} )
|
||||
.connect( this, { click: 'onParameterNameSubmitted' } );
|
||||
|
||||
this.addParameterInputField = new OO.ui.ActionFieldLayout(
|
||||
this.actionFieldLayout = new OO.ui.ActionFieldLayout(
|
||||
this.paramInputField,
|
||||
this.saveButton,
|
||||
{ classes: [ 've-ui-mwTransclusionDialog-addParameterFieldset-input' ] }
|
||||
|
@ -68,7 +68,7 @@ ve.ui.MWAddParameterPage = function VeUiMWAddParameterPage( parameter, name, con
|
|||
helpInline: true,
|
||||
help: $helpText,
|
||||
classes: [ 've-ui-mwTransclusionDialog-addParameterFieldset' ],
|
||||
$content: this.addParameterInputField.$element
|
||||
$content: this.actionFieldLayout.$element
|
||||
} );
|
||||
|
||||
ve.targetLinksToNewWindow( this.addParameterFieldset.$element[ 0 ] );
|
||||
|
@ -116,7 +116,7 @@ ve.ui.MWAddParameterPage.prototype.onParameterNameChanged = function ( value ) {
|
|||
var paramName = value.trim(),
|
||||
errors = this.getValidationErrors( paramName );
|
||||
|
||||
this.addParameterInputField.setErrors( errors );
|
||||
this.actionFieldLayout.setErrors( errors );
|
||||
this.saveButton.setDisabled( !paramName || errors.length );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue