Add stripping leading and trailing spaces from the "format" field

Bug: T177973
Change-Id: I5fc30479485da59b5ea097f97a2dfb7ec149918f
This commit is contained in:
Bjornskjald 2018-11-01 22:55:40 +01:00
parent 8d95685c11
commit 096d558272
No known key found for this signature in database
GPG key ID: 93BC6F739C9CA641

View file

@ -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() ) );
}
}
};