Last active
December 16, 2015 01:19
-
-
Save bmbrands/5354265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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