Henning Snater has uploaded a new change for review.

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

Change subject: label-/descriptionview: Always initially draw when node text is 
empty
......................................................................

label-/descriptionview: Always initially draw when node text is empty

Change-Id: I40da9c1abb80742dde0a181ae473aa1cb663803a
---
M lib/resources/jquery.wikibase/jquery.wikibase.descriptionview.js
M lib/resources/jquery.wikibase/jquery.wikibase.labelview.js
2 files changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.descriptionview.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.descriptionview.js
index 7fccede..eb91f78 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.descriptionview.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.descriptionview.js
@@ -84,7 +84,7 @@
 
                PARENT.prototype._create.call( this );
 
-               if( this.options.value.getText() !== '' && this.$text.text() 
=== '' ) {
+               if( this.$text.text() === '' ) {
                        this._draw();
                }
        },
diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.labelview.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.labelview.js
index f0f89ed..4bfc1f4 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.labelview.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.labelview.js
@@ -93,7 +93,7 @@
 
                PARENT.prototype._create.call( this );
 
-               if( this.options.value.getText() !== '' && this.$text.text() 
=== '' ) {
+               if( this.$text.text() === '' ) {
                        this._draw();
                }
        },

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40da9c1abb80742dde0a181ae473aa1cb663803a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>

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

Reply via email to