From: Florian Zeitz Date: Thu, 9 Sep 2010 20:31:08 +0000 (+0200) Subject: Use readonly s for type="result" dataforms X-Git-Url: https://git.babelmonkeys.de/?a=commitdiff_plain;h=0a815dbe7d2fac797c905149988ac5e540b663bc;p=adhocweb.git Use readonly s for type="result" dataforms --- diff --git a/js/main.js b/js/main.js index a0800ad..52e6296 100644 --- a/js/main.js +++ b/js/main.js @@ -128,6 +128,8 @@ function addForm(elem, x) { item.val($(this).find("value").text()); } } + if ($(x).attr("type") == "result") + item.attr("readonly", true); if ($(this).attr("var")) { item.attr("name", $(this).attr("var")); item.attr("id", $(this).attr("var"));