Jeroen De Dauw has uploaded a new change for review.

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

Change subject: PhpStorm says this is better
......................................................................

PhpStorm says this is better

Change-Id: I0c6cc07c1a26e6e58cb7ebf1869ef20d7ccaf46f
---
M repo/resources/wikibase.ui.entityViewInit.js
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/repo/resources/wikibase.ui.entityViewInit.js 
b/repo/resources/wikibase.ui.entityViewInit.js
index 9eefbd6..8db03c7 100644
--- a/repo/resources/wikibase.ui.entityViewInit.js
+++ b/repo/resources/wikibase.ui.entityViewInit.js
@@ -161,7 +161,7 @@
                function updateWatchLink() {
                        // All four supported skins are using the same ID, the 
other selectors
                        // in mediawiki.page.watch.ajax.js are undocumented and 
probably legacy stuff
-                       var $link = $( '#ca-watch a' );
+                       var $link = $( '#ca-watch' ).find( 'a' );
 
                        // Skip if page is already watched and there is no 
"watch this page" link
                        // Note: The exposed function fails for empty jQuery 
collections

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c6cc07c1a26e6e58cb7ebf1869ef20d7ccaf46f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

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

Reply via email to