summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables-editchain-html.lsp4
-rw-r--r--iptables-editrule-html.lsp6
2 files changed, 5 insertions, 5 deletions
diff --git a/iptables-editchain-html.lsp b/iptables-editchain-html.lsp
index eaa1bfb..3480fcc 100644
--- a/iptables-editchain-html.lsp
+++ b/iptables-editchain-html.lsp
@@ -6,9 +6,9 @@ require("viewfunctions")
<%
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
if page_info.action == "editchain" then
- form.value.table.contenteditable = false
+ form.value.table.readonly = true
form.value.table.type = "text"
- form.value.chain.contenteditable = false
+ form.value.chain.readonly = true
end
local order = {"table", "chain", "policy"}
displayform(form, order)
diff --git a/iptables-editrule-html.lsp b/iptables-editrule-html.lsp
index 4f7ba0b..9c732ec 100644
--- a/iptables-editrule-html.lsp
+++ b/iptables-editrule-html.lsp
@@ -5,10 +5,10 @@ require("viewfunctions")
<H1><%= form.label %></H1>
<%
for name,val in pairs(form.value) do val.name = name end
-form.value.table.contenteditable = false
+form.value.table.readonly = true
form.value.table.type = "text"
-form.value.chain.contenteditable = false
-form.value.position.contenteditable = false
+form.value.chain.readonly = true
+form.value.position.readonly = true
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
displayformstart(form)
%>