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://cgit.babelmonkeys.de/?a=commitdiff_plain;h=0a815dbe7d2fac797c905149988ac5e540b663bc;hp=eea26db826d1821aa4268fa8ccba484bff97a5bb;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"));