jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Yurik: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I926e0c711b0728022ac78dd886c528d69b3582c9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
Gerrit-Reviewer: JGirault <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits