From 19758fae439cffad8adaf64f2e8f74ae452816ee Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 22 Nov 2009 20:32:56 +0000 Subject: [PATCH] CBI: Implement reverse dependencies Allow wiazrd steps without buttons --- libs/cbi/htdocs/luci-static/resources/cbi.js | 17 ++++++++++++++--- libs/cbi/luasrc/cbi.lua | 1 + libs/cbi/luasrc/view/cbi/delegator.htm | 4 +++- libs/cbi/luasrc/view/cbi/header.htm | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 004e12eaa..7ba81189e 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -59,15 +59,26 @@ function cbi_d_checkvalue(target, ref) { } function cbi_d_check(deps) { + var reverse; + var def = false; for (var i=0; i <% end %> +<% if not self.disallow_pageactions then %> <% if self.allow_back and self:get_prev(self.current) then %> <% end %> @@ -31,5 +32,6 @@ $Id$ <% elseif self:get_next(self.current) then %> <% end %> +<% end %> - + \ No newline at end of file diff --git a/libs/cbi/luasrc/view/cbi/header.htm b/libs/cbi/luasrc/view/cbi/header.htm index c831b0df1..bece16bb2 100644 --- a/libs/cbi/luasrc/view/cbi/header.htm +++ b/libs/cbi/luasrc/view/cbi/header.htm @@ -14,7 +14,7 @@ $Id$ -%> <%+header%> -
+
-- 2.11.0