Hello There,
I am trying to load custom JavaScript file using following code.
$wgResourceModules['skins.alskin01'] = array(
'scripts' => array('alskin01.resources.main.js','alskin01/resources/some.js'),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
);
The alskin01 is folder inside "skins" folder. The resources is folder inside "alskin01" folder. Where as main.js and some.js are my custom Javascript file. It will be great if you could help me understand where these files get loaded and how to access JS functions.