4 M.core_user.init_participation = function(Y) {
5 Y.on('change', function() {
6 var action = Y.one('#formactionid');
7 if (action.get('value') == '') {
11 Y.all('input.usercheckbox').each(function() {
12 if (this.get('checked')) {
17 // no checkbox selected
20 Y.one('#participantsform').submit();
23 Y.on('click', function(e) {
24 Y.all('input.usercheckbox').each(function() {
25 this.set('checked', 'checked');
29 Y.on('click', function(e) {
30 Y.all('input.usercheckbox').each(function() {
31 this.set('checked', '');
36 M.core_user.init_tree = function(Y, expand_all, htmlid) {
37 Y.use('yui2-treeview', function(Y) {
38 var tree = new YAHOO.widget.TreeView(htmlid);
40 tree.subscribe("clickEvent", function(node, event) {
41 // we want normal clicking which redirects to url