libs/cbi: auto-hide apply messages and make title and description optional for Map...
[project/luci.git] / libs / cbi / luasrc / view / cbi / simpleform.htm
index a0bb0f0..9c40f82 100644 (file)
@@ -20,8 +20,8 @@ $Id$
        </div>
 <% end %>
        <div class="cbi-map" id="cbi-<%=self.config%>">
-               <h2><a id="content" name="content"><%=self.title%></a></h2>
-               <div class="cbi-map-descr"><%=self.description%></div>
+               <% if self.title and #self.title > 0 then %><h2><a id="content" name="content"><%=self.title%></a></h2><% end %>
+               <% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %>
                <% self:render_children() %>
                <br />
        </div>