Jonas Kress (WMDE) has uploaded a new change for review. https://gerrit.wikimedia.org/r/270748
Change subject: Fixes refreshing aliases in header after stop editing ...................................................................... Fixes refreshing aliases in header after stop editing Change-Id: I45d78a81a87e95405eb6f647d1d38f747b08eb26 --- M view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/48/270748/1 diff --git a/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js b/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js index 4bfcbe2..bac06d7 100644 --- a/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js +++ b/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js @@ -101,9 +101,10 @@ this.widgetEventPrefix + 'change.' + this.widgetName + ' ' + this.widgetEventPrefix + 'afterstopediting.' + this.widgetName, function( event, lang ) { - if ( lang !== self.options.userLanguages[0] ) { + if ( typeof lang === 'string' && lang !== self.options.userLanguages[0] ) { return; } + lang = self.options.userLanguages[0]; var fingerprint = self.value(), description = fingerprint.getDescriptionFor( lang ), -- To view, visit https://gerrit.wikimedia.org/r/270748 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I45d78a81a87e95405eb6f647d1d38f747b08eb26 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Jonas Kress (WMDE) <jonas.kr...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits