// we have received at least one answer: we'll do something
on_new_record: function (record) {
// we only need to act on the first record
if (this.triggered) return;
if (debug) messages.debug("validatebutton.on_query_done - turning on "+this.options.button_domid);
$('#'+this.options.button_domid).removeClass('disabled');
// we have received at least one answer: we'll do something
on_new_record: function (record) {
// we only need to act on the first record
if (this.triggered) return;
if (debug) messages.debug("validatebutton.on_query_done - turning on "+this.options.button_domid);
$('#'+this.options.button_domid).removeClass('disabled');
this.triggered=true;
},
// for reference only, since there is nothing we need to do at this point
on_query_done: function() {
this.triggered=true;
},
// for reference only, since there is nothing we need to do at this point
on_query_done: function() {