mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Add stripping leading and trailing spaces from the "format" field
Bug: T177973 Change-Id: I5fc30479485da59b5ea097f97a2dfb7ec149918f
This commit is contained in:
parent
8d95685c11
commit
096d558272
|
@ -500,7 +500,7 @@ mw.TemplateData.Dialog.prototype.onTemplateFormatInputWidgetChange = function (
|
|||
this.templateFormatInputWidget.setValue( newValue );
|
||||
// Will recurse to actually set value in model.
|
||||
} else {
|
||||
this.model.setTemplateFormat( format );
|
||||
this.model.setTemplateFormat( this.displayToFormat( value.trim() ) );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue