From 813071fb6508e35f97a9893ac7f50b11c59431d3 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sun, 26 Dec 2010 00:22:34 +0100 Subject: [PATCH 1/1] if-Statement -> &&-Operator "magic --- js/adhoc.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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"); -- 2.39.2