X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fadhoc.js;h=51932499f7a099ac94a96f8daa20d78f4509d1c9;hp=0266318c9e99626dd0b9d0a053ffc2899e54e02d;hb=3a1e752b5d9120ffd6def0a5e17e2cf536209854;hpb=5a45869a032410c17d02374b8de20e496c114de3 diff --git a/js/adhoc.js b/js/adhoc.js index 0266318..5193249 100644 --- a/js/adhoc.js +++ b/js/adhoc.js @@ -1,3 +1,9 @@ +// adhocweb +// Copyright (c) 2010-2013 Florian Zeitz +// +// This project is MIT licensed. +// Please see the COPYING file for more information. + /* * Implementation of ECMA Script 5 like bind from: * https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind @@ -46,7 +52,7 @@ Adhoc.prototype = { addForm: function (x) { var self = this; - var form = $("
"); + var form = $(""); form.submit(function(event) { self.executeCommand("execute", self.serializeToDataform('form'), function(e) { self.displayResult(e) }); @@ -57,17 +63,16 @@ Adhoc.prototype = { $(x).find("title").each(function() { $("").text($(this).text()).appendTo(fieldset); }); $(x).find("instructions").each(function() { $("

").text($(this).text()).appendTo(fieldset); }); $(x).find("field").each(function() { + var clearfix = $("

"); var item = self.buildHTMLField(this); var label = $(this).attr("label"); if(label) { - $("