mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-13 17:57:11 +00:00
Fix broken comparison when editing the template description
This was always comparing with the English description. The effect of this was that the comparison was always false and the value always set, even if it didn't change, resulting in unnecessary events being fired. So this is only about performance but not really user facing. Change-Id: Id7a46dbac81e2595478848bbf325eece21815bec
This commit is contained in:
parent
f79db7eddd
commit
17d6c485bb
|
@ -500,7 +500,7 @@ Dialog.prototype.onDescriptionInputChange = function ( value ) {
|
|||
}
|
||||
this.descriptionChanged = true;
|
||||
|
||||
if ( this.model.getTemplateDescription() !== value ) {
|
||||
if ( this.model.getTemplateDescription( this.language ) !== value ) {
|
||||
this.model.setTemplateDescription( value, this.language );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue