Skip to content

Instantly share code, notes, and snippets.

@bmbrands
Last active December 16, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bmbrands/5354265 to your computer and use it in GitHub Desktop.
Save bmbrands/5354265 to your computer and use it in GitHub Desktop.
YUI.add('moodle-block_codex_about-toggler', function(Y) {
// Your module code goes here.
// Define a name space to call
M.block_codex_about = M.block_codex_about || {};
M.block_codex_about.toggler = {
init: function() {
var toggleShow = function (e,param) {
console.log('test');
console.log(param);
};
Y.all('.codex_about_link').each(function(region){
var id = region.get("id");
console.log(id);
region.on('click', toggleShow, this, id);
});
}
};
}, '@VERSION@', {
requires: ['node']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment