Merge branch 'wip-mdl-48117' of https://github.com/rajeshtaneja/moodle
[moodle.git] / mod / data / module.js
blob12c981c38a67a9dbcf48e34da0401547547e0a91
1 M.mod_data = {};
3 M.mod_data.init_view = function(Y) {
4     Y.on('click', function(e) {
5         Y.all('input.recordcheckbox').each(function() {
6             this.set('checked', 'checked');
7         });
8     }, '#checkall');
10     Y.on('click', function(e) {
11         Y.all('input.recordcheckbox').each(function() {
12             this.set('checked', '');
13         });
14     }, '#checknone');