if (status == "executing") {
for (kind in kinds) {
input = $("<input type='button' disabled='disabled' value='" + kinds[kind] + "'/>").click(function() {
- if (kind == 'prev')
- Adhoc.executeCommand(kind, false, function(e) { Adhoc.displayResult(elem, e) });
- else
- Adhoc.executeCommand(kind, Adhoc.serializeToDataform('form'), function(e) { Adhoc.displayResult(elem, e) });
+ Adhoc.executeCommand(kind, (kind != 'prev') && Adhoc.serializeToDataform('form'), function(e) { Adhoc.displayResult(elem, e) });
});
if ($(result).find('actions ' + kind).length > 0)
input.removeAttr("disabled");