- var input;
- (function(type) {
- input = $("<input type='button' disabled='disabled' class='btn' value='" + kinds[type] + "'/>").click(function() {
- self.executeCommand(type, (type!= 'prev') && self.serializeToDataform('form'), function(e) { self.displayResult(e) });
- }).appendTo(controls);
- })(kind);
- if ($(result).find('actions ' + kind).length > 0)
+ var input = $("<input type='button' disabled='disabled' class='btn' value='" + kinds[kind] + "'/>").click(function() {
+ self.executeCommand(kind, (kind != 'prev') && self.serializeToDataform('form'), function(e) { self.displayResult(e) });
+ }).appendTo(controls);
+ if (actions.find(kind).length > 0)