Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37675

Re: Javascript Init Call - Undefined

$
0
0
by Davo Smith.  

$jsmodule = array(
'name' => 'block_bcgt',
'fullpath' => new moodle_url('/blocks/bcgt/js/block_bcgt.js'),
'requires' => array('node', 'event', 'panel', 'json'), // YUI3 modules to include
);

$opts = array('name' => 'value'); // Params to pass to the init function
$PAGE->requires->js_init_call('M.block_bcgt.init', array($opts), true, $jsmodule);

 


Viewing all articles
Browse latest Browse all 37675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>