From: Jo-Philipp Wich Date: Tue, 14 Feb 2012 14:11:57 +0000 (+0000) Subject: libs/web: fix invalid html after r8224 - the whitespace trimming removed the space... X-Git-Tag: 0.11.0~1119 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=75f849ca583119e510ff41a2ff3579517ee10526;p=project%2Fluci.git libs/web: fix invalid html after r8224 - the whitespace trimming removed the space between the attributes --- diff --git a/libs/web/luasrc/view/cbi/tblsection.htm b/libs/web/luasrc/view/cbi/tblsection.htm index 9b5637f0e5..c352cda0ca 100644 --- a/libs/web/luasrc/view/cbi/tblsection.htm +++ b/libs/web/luasrc/view/cbi/tblsection.htm @@ -95,12 +95,12 @@ end <%- if self.extedit then -%> - onclick="window.location='<%=self.extedit:format(section)%>'" - <%- elseif type(self.extedit) == "function" then -%> - onclick="window.location='<%=self:extedit(section)%>'" - <%- end -%> - alt="<%:Edit%>" title="<%:Edit%>" style="text-align: center;background-image:url(<%=resource%>/cbi/edit.gif)" /> + <%- if type(self.extedit) == "string" then + %> onclick="window.location='<%=self.extedit:format(section)%>'" + <%- elseif type(self.extedit) == "function" then + %> onclick="window.location='<%=self:extedit(section)%>'" + <%- end + %> alt="<%:Edit%>" title="<%:Edit%>" style="text-align: center;background-image:url(<%=resource%>/cbi/edit.gif)" /> <%- end; if self.addremove then %> <%- end -%>