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: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=75f849ca583119e510ff41a2ff3579517ee10526;hp=a3b0db7d8666b578cb1576158b62fcf952b9236f 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 9b5637f0e..c352cda0c 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 -%>