]> git.babelmonkeys.de Git - adhocweb.git/commitdiff
Use readonly <input/>s for type="result" dataforms
authorFlorian Zeitz <florob@babelmonkeys.de>
Thu, 9 Sep 2010 20:31:08 +0000 (22:31 +0200)
committerFlorian Zeitz <florob@babelmonkeys.de>
Thu, 9 Sep 2010 20:31:08 +0000 (22:31 +0200)
js/main.js

index a0800ad54ddecfbcd4d7f0ccff4c3c48a65fe641..52e6296a5c54908a740595d00a36e3712faa3c6f 100644 (file)
@@ -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"));