]> cgit.babelmonkeys.de Git - adhocweb.git/blobdiff - js/main.js
Use readonly <input/>s for type="result" dataforms
[adhocweb.git] / 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"));