Changeset 6372
- Timestamp:
- 10/31/10 20:34:45 (3 years ago)
- Location:
- luci/trunk/libs/web/luasrc/view/cbi
- Files:
-
- 2 modified
-
apply_xhr.htm (modified) (2 diffs)
-
map.htm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/web/luasrc/view/cbi/apply_xhr.htm
r6306 r6372 13 13 -%> 14 14 15 <% export("cbi_apply_xhr", function(id, configs ) -%>15 <% export("cbi_apply_xhr", function(id, configs, redirect) -%> 16 16 <fieldset class="cbi-section" id="cbi-apply-<%=id%>"> 17 17 <legend><%:Applying changes%></legend> … … 34 34 { 35 35 e.innerHTML = '<%:Configuration applied.%>'; 36 window.setTimeout(function() { e.parentNode.style.display = 'none' }, 1000); 36 window.setTimeout(function() { 37 e.parentNode.style.display = 'none'; 38 <% if redirect then %>location.href='<%=redirect%>';<% end %> 39 }, 1000); 37 40 } 38 41 } -
luci/trunk/libs/web/luasrc/view/cbi/map.htm
r6306 r6372 19 19 <% if self.title and #self.title > 0 then %><h2><a id="content" name="content"><%=self.title%></a></h2><% end %> 20 20 <% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %> 21 <%- if self._apply then cbi_apply_xhr(self.config, self.parsechain ) end -%>21 <%- if self._apply then cbi_apply_xhr(self.config, self.parsechain, self.redirect) end -%> 22 22 <%- self:render_children() %> 23 23 <br />
