libs/web: support different caption for button widgets
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Oct 2010 04:03:36 +0000 (04:03 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Oct 2010 04:03:36 +0000 (04:03 +0000)
libs/web/luasrc/view/cbi/button.htm

index 5a51897..4edb461 100644 (file)
@@ -14,7 +14,7 @@ $Id$
 -%>
 <%+cbi/valueheader%>
        <% if self:cfgvalue(section) ~= false then %>
-               <input class="cbi-input-<%=self.inputstyle or "button" %>" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.title)%> />
+               <input class="cbi-input-<%=self.inputstyle or "button" %>" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> />
        <% else %>
                -
        <% end %>