TheDJ has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264861
Change subject: Fix usage of wikipage.content hook
......................................................................
Fix usage of wikipage.content hook
Change-Id: I926e0c711b0728022ac78dd886c528d69b3582c9
---
M modules/graph-loader.js
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph
refs/changes/61/264861/1
diff --git a/modules/graph-loader.js b/modules/graph-loader.js
index 67eeb93..e4d314a 100644
--- a/modules/graph-loader.js
+++ b/modules/graph-loader.js
@@ -1,9 +1,9 @@
( function ( $, mw ) {
- mw.hook( 'wikipage.content' ).add( function () {
+ mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Make graph containers clickable
- $( '#bodyContent' ).on( 'click',
'.mw-graph.mw-graph-interactable', function () {
+ $content.find( '.mw-graph.mw-graph-interactable' ).on( 'click',
function () {
var $this = $( this ),
$button = $this.find( '.mw-graph-switch' );
--
To view, visit https://gerrit.wikimedia.org/r/264861
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I926e0c711b0728022ac78dd886c528d69b3582c9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits