Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/180050

Change subject: Initialize claims on entities whenever a claimlistview exists
......................................................................

Initialize claims on entities whenever a claimlistview exists

Also fix the behavior for properties: They weren't initialized
if more than one claimlistview is present.

Change-Id: I1582fe50080d2d5a982855ad189fa855f33a95bb
(cherry picked from commit 126c39be930160a412b6c0837a3b77974821cdbd)
---
M lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/50/180050/1

diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
index 2e7eabd..b89dc33 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.entityview.js
@@ -103,10 +103,7 @@
 
                // TODO: Have an itemview and propertyview instead of ugly hack 
here.
                var entityType = this.options.value.getType();
-               if(
-                       entityType === 'item'
-                       || entityType === 'property' && this.element.find( 
'.wb-claimlistview' ).length === 1
-               ) {
+               if( this.element.find( '.wb-claimlistview' ).length > 0 ) {
                        this._initClaims();
                }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1582fe50080d2d5a982855ad189fa855f33a95bb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.25wmf12c
Gerrit-Owner: Aude <aude.w...@gmail.com>
Gerrit-Reviewer: Hoo man <h...@online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to