X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fadhoc.js;h=68b14c9efa073bf295435f5076492d9e68aa7c43;hp=574c5a65fb24949b4e052ea71640669afceaffba;hb=813071fb6508e35f97a9893ac7f50b11c59431d3;hpb=b2d5c1947805fa3282ffc4762fe08620fba46c44 diff --git a/js/adhoc.js b/js/adhoc.js index 574c5a6..68b14c9 100644 --- a/js/adhoc.js +++ b/js/adhoc.js @@ -148,10 +148,7 @@ var Adhoc = { if (status == "executing") { for (kind in kinds) { input = $("").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");