From 75f849ca583119e510ff41a2ff3579517ee10526 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 14 Feb 2012 14:11:57 +0000 Subject: [PATCH 1/1] libs/web: fix invalid html after r8224 - the whitespace trimming removed the space between the attributes --- libs/web/luasrc/view/cbi/tblsection.htm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -%> -- 2.11.0