- How checkbox is related to clicks on radio buttons?
- bindAsEventListener(this) isn't needed - bind(this) is enough.
- Handler in Element#on retrieves clicked element as second argument, no need to find it via var elm = e.findElement();
- elm.getValue() for checkbox will return true or false - case 'athlete' has no sense - is this OK?
this.__z__chkClicksthis = this.form.on('click','input[type=checkbox]', this.__chkClicks.bind(this));
__chkClicks: function(e, elm) {
this.form.select('div.container').invoke('hide');
this.form.select('input[type=checkbox]').without(elm).invoke('setValue', false);
var chk_val = elm.getValue();
var show_layer = $F(elm) ? 'div.true_container' : 'div.false_container';
this.form.down(show_layer).show();
switch(chk_val) {
case 'athlete':
var input = $('qf_athlete').show().down('input');
this.__qf.Search(input.getValue());
break;
}
},