jenkins-bot has submitted this change and it was merged.

Change subject: Initialize statements on property pages
......................................................................


Initialize statements on property pages

Bug: 68379
Change-Id: I813403ad2274cd2c50b110eeee6bf9884c999ff5
---
M lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
1 file changed, 8 insertions(+), 1 deletion(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
index 2421a20..ff981f6 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
@@ -99,8 +99,15 @@
                this._initFingerprints();
 
                // TODO: Have an itemview and propertyview instead of ugly hack 
here.
-               if ( this.options.value.getType() === 'item' ) {
+               var entityType = this.options.value.getType();
+               if(
+                       entityType === 'item'
+                       || entityType === 'property' && mw.config.get( 
'wbExperimentalFeatures' )
+               ) {
                        this._initClaims();
+               }
+
+               if( entityType === 'item' ) {
                        this._initSiteLinks();
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/169681
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I813403ad2274cd2c50b110eeee6bf9884c999ff5
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>
Gerrit-Reviewer: Adrian Lang <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to