mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Correct focus handling when adding undocumented parameters"
This commit is contained in:
commit
7f8b6202ac
|
@ -98,12 +98,14 @@ ve.ui.MWAddParameterPage.prototype.onParameterInput = function () {
|
|||
ve.ui.MWAddParameterPage.prototype.togglePlaceholder = function ( expand ) {
|
||||
this.isExpanded = expand === undefined ? !this.isExpanded : !!expand;
|
||||
|
||||
this.addParameterInputField.toggle( this.isExpanded );
|
||||
this.addParameterInputHeader.setIcon( this.isExpanded ? 'subtract' : 'add' );
|
||||
this.addParameterFieldset.$element.toggleClass(
|
||||
've-ui-mwTransclusionDialog-addParameterFieldset-collapsed',
|
||||
!this.isExpanded
|
||||
);
|
||||
if ( this.isExpanded ) {
|
||||
this.paramInputField.focus();
|
||||
}
|
||||
};
|
||||
|
||||
ve.ui.MWAddParameterPage.prototype.setOutlineItem = function () {
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
padding-bottom: 5em;
|
||||
}
|
||||
|
||||
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .oo-ui-inline-help {
|
||||
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .oo-ui-inline-help,
|
||||
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .ve-ui-mwTransclusionDialog-addParameterFieldset-input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue