X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fadhoc.js;h=7e2ba521bc30e910dcc9a258bc973493d2e6855b;hp=3f2ae2b4e96843896f95fdc1a4dc8c540be2e529;hb=e55b23864a9911c15d930b43ed9afe1df5943bf7;hpb=9f26ed9cdd3330b0fb922e1475d3175caa46d528
diff --git a/js/adhoc.js b/js/adhoc.js
index 3f2ae2b..7e2ba52 100644
--- a/js/adhoc.js
+++ b/js/adhoc.js
@@ -162,9 +162,11 @@ var Adhoc = {
});
if (status === "executing") {
for (kind in kinds) {
- input = $("").click(function() {
- self.executeCommand(kind, (kind != 'prev') && self.serializeToDataform('form'), function(e) { self.displayResult(elem, e) });
- });
+ (function(type) {
+ input = $("").click(function() {
+ self.executeCommand(type, (type!= 'prev') && self.serializeToDataform('form'), function(e) { self.displayResult(elem, e) });
+ });
+ })(kind);
if ($(result).find('actions ' + kind).length > 0)
input.removeAttr("disabled");
$(elem).append(input);