summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/upload.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-18 19:34:02 +0100
committerJo-Philipp Wich <jow@openwrt.org>2016-01-18 19:34:02 +0100
commit5eaf4cc489c0e8cd1ffdfde4355866cb5a481d96 (patch)
tree20390f6213de6b9f5340cd97e760db93298f1d0f /modules/luci-base/luasrc/view/cbi/upload.htm
parent808c1b77f9008bc9f4a760ea0629b3fd4e49fbcb (diff)
luci-base: cbi: refactor event handling js
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/upload.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/upload.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/upload.htm b/modules/luci-base/luasrc/view/cbi/upload.htm
index 157f3b36fa..4fb5201aac 100644
--- a/modules/luci-base/luasrc/view/cbi/upload.htm
+++ b/modules/luci-base/luasrc/view/cbi/upload.htm
@@ -15,10 +15,10 @@
<% if not self.unsafeupload then %>
<input type="hidden"<%= attr("value", v) .. attr("name", "cbi.rlf." .. section .. "." .. self.option) .. attr("id", "cbi.rlf." .. section .. "." .. self.option) %> />
<% end %>
-
+
<% if (not s) or (s and not self.unsafeupload) then %>
<input class="cbi-input-file" type="file"<%= attr("name", cbid) .. attr("id", cbid) %> />
<% end %>
- <input type="text" class="cbi-input-text" onchange="cbi_d_update(this.id)"<%=
+ <input type="text" class="cbi-input-text" data-update="change"<%=
attr("name", cbid .. ".textbox") .. attr("id", cbid .. ".textbox") .. attr("value", luci.cbi.AbstractValue.cfgvalue(self, section) or self.default) .. ifattr(self.size, "size") .. ifattr(self.placeholder, "placeholder") .. ifattr(self.readonly, "readonly") .. ifattr(self.maxlength, "maxlength") %> />
<%+cbi/valuefooter%>