From 28c71f7edaf55072914c5e4f74dbf78ee7f9d84c Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 28 Jun 2019 15:53:05 +0000 Subject: [PATCH] luci-base: nowrap for password input and reveal button Fixes openwrt/luci#2624 Signed-off-by: Yousong Zhou (cherry-picked from commit 609f5290c8d582def0a6334519f5e31aad19abde) --- modules/luci-base/luasrc/view/cbi/cell_valueheader.htm | 2 +- modules/luci-base/luasrc/view/cbi/full_valueheader.htm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/luasrc/view/cbi/cell_valueheader.htm b/modules/luci-base/luasrc/view/cbi/cell_valueheader.htm index cb11d8f61..4b7095754 100644 --- a/modules/luci-base/luasrc/view/cbi/cell_valueheader.htm +++ b/modules/luci-base/luasrc/view/cbi/cell_valueheader.htm @@ -3,7 +3,7 @@ local descr = luci.util.trim(striptags(self.description)) local ftype = self.typename or (self.template and self.template:gsub("^.+/", "")) -%> -
0, "data-type", ftype) .. ifattr(title and #title > 0, "data-title", title, true) .. diff --git a/modules/luci-base/luasrc/view/cbi/full_valueheader.htm b/modules/luci-base/luasrc/view/cbi/full_valueheader.htm index 10a554329..1d9ebeba9 100644 --- a/modules/luci-base/luasrc/view/cbi/full_valueheader.htm +++ b/modules/luci-base/luasrc/view/cbi/full_valueheader.htm @@ -1,4 +1,4 @@ -
" data-index="<%=self.index%>" data-depends="<%=pcdata(self:deplist2json(section))%>"> +
" data-index="<%=self.index%>" data-depends="<%=pcdata(self:deplist2json(section))%>"> <%- if self.title and #self.title > 0 then -%>