From 0a815dbe7d2fac797c905149988ac5e540b663bc Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Thu, 9 Sep 2010 22:31:08 +0200 Subject: [PATCH] Use readonly s for type="result" dataforms --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) 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")); -- 2.39.2