Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/109851
Change subject: DO NOT MERGE: Add basic RL module for navpopups
......................................................................
DO NOT MERGE: Add basic RL module for navpopups
Change-Id: I2cf4418722b0883a1d9981f55581e5993fc857cd
---
M VectorBeta.hooks.php
M VectorBeta.php
A js/popups.js
3 files changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VectorBeta
refs/changes/51/109851/1
diff --git a/VectorBeta.hooks.php b/VectorBeta.hooks.php
index f1805bc..123762a 100644
--- a/VectorBeta.hooks.php
+++ b/VectorBeta.hooks.php
@@ -67,4 +67,9 @@
}
return true;
}
+
+ public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin
) {
+ $out->addModules( array( 'navpopups.beta' ) );
+ }
+
}
diff --git a/VectorBeta.php b/VectorBeta.php
index 9338abc..b6d7033 100644
--- a/VectorBeta.php
+++ b/VectorBeta.php
@@ -38,6 +38,13 @@
'remoteExtPath' => $remoteExtPath,
'localBasePath' => $localBasePath,
),
+ 'navpopups.beta' => array(
+ 'scripts' => array(
+ 'js/popups.js'
+ ),
+ 'remoteExtPath' => $remoteExtPath,
+ 'localBasePath' => $localBasePath,
+ ),
) );
$wgAutoloadClasses['VectorBetaHooks'] = __DIR__ . '/VectorBeta.hooks.php';
@@ -46,3 +53,4 @@
$wgHooks['GetBetaFeaturePreferences'][] = 'VectorBetaHooks::getPreferences';
$wgHooks['SkinVectorStyleModules'][] =
'VectorBetaHooks::skinVectorStyleModules';
+$wgHooks['BeforePageDisplay'][] = 'VectorBetaHooks::onBeforePageDisplay';
diff --git a/js/popups.js b/js/popups.js
new file mode 100644
index 0000000..d2a8fe5
--- /dev/null
+++ b/js/popups.js
@@ -0,0 +1 @@
+alert("Hi!");
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/109851
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cf4418722b0883a1d9981f55581e5993fc857cd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VectorBeta
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits