add missing cbi-button class to nsection.htm
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Aug 2014 10:42:14 +0000 (10:42 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Aug 2014 10:42:14 +0000 (10:42 +0000)
Hello,
I opened an issue in trac but it doesn't let me attach the patch (it
complains about cookies not enabled, which isn't true), and I cannot see
it to try again since it's awaiting moderation (moderated submission
#34250) so here's the patch (against 0.11, but I see that trunk has the
same problem).

Bye
--
Luca

modules/base/luasrc/view/cbi/nsection.htm

index 95e765882233c5c1a59cd30f14454288cf2036cb..32e73e748d6ea2d7e4f81d9a38220b8fd2509c98 100644 (file)
@@ -8,7 +8,7 @@
                <%- end %>
                <% if self.addremove then -%>
                        <div class="cbi-section-remove right">
-                               <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:Delete%>" />
+                               <input type="submit" class="cbi-button" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:Delete%>" />
                        </div>
                <%- end %>
                <%+cbi/tabmenu%>
@@ -24,7 +24,7 @@
                        <legend><%=self.title%></legend>
                <%- end %>
                <div class="cbi-section-descr"><%=self.description%></div>
-               <input type="submit" class="cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
+               <input type="submit" class="cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
        </fieldset>
        <%- end %>
 <% end %>