[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 2 M.report_participation = {}; 3 4 M.report_participation.init = function(Y) { 5 6 Y.on('submit', function(e) { 7 Y.one('#formactionselect').get('options').each(function() { 8 if (this.get('selected') && this.get('value') == '') { 9 // no action selected 10 e.preventDefault(); 11 } 12 }); 13 var ok = false; 14 Y.all('input.usercheckbox').each(function() { 15 if (this.get('checked')) { 16 ok = true; 17 } 18 }); 19 if (!ok) { 20 // no checkbox selected 21 e.preventDefault(); 22 } 23 }, '#studentsform'); 24 25 Y.on('click', function(e) { 26 Y.all('input.usercheckbox').each(function() { 27 this.set('checked', 'checked'); 28 }); 29 }, '#checkall'); 30 31 Y.on('click', function(e) { 32 Y.all('input.usercheckbox').each(function() { 33 this.set('checked', ''); 34 }); 35 }, '#checknone'); 36 37 Y.on('click', function(e) { 38 Y.all('input.usercheckbox').each(function() { 39 if (this.get('value') == 0) { 40 this.set('checked', 'checked'); 41 } 42 }); 43 }, '#checknos'); 44 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |