From d65d428af973665ccd3c3392e2ea8a69b43701f1 Mon Sep 17 00:00:00 2001 From: Andreas Brodmann Date: Tue, 20 Nov 2007 22:41:17 +0000 Subject: /acf/squid: save work of day git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@352 ab2d0c66-481e-0410-8bed-d214d4d58bed --- squid-controller.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'squid-controller.lua') diff --git a/squid-controller.lua b/squid-controller.lua index 3e8522f..a651d6c 100644 --- a/squid-controller.lua +++ b/squid-controller.lua @@ -6,7 +6,7 @@ module (..., package.seeall) -- We use the self.conf table because it already has prefix,controller,etc -- The redir code is defined in the application error handler (acf-controller) local list_redir = function (self) - self.conf.action = "home" + self.conf.action = "basic" self.conf.type = "redir" error (self.conf) end @@ -47,6 +47,7 @@ basic = function( self ) end service.status = self.model.get_status() + service.config = self.model.get_basic_config() return ( cfe ({ option = option, service = service }) ) end @@ -70,12 +71,12 @@ advanced = function( self ) if self.clientdata.cmd then if self.clientdata.cmd == "save" then - service.message = self.model.update_config( self.clientdata.config ) + service.message = self.model.update_adv_config( self.clientdata.config ) end end service.status = self.model.get_status() - service.config = self.model.get_config() + service.config = self.model.get_adv_config() return ( cfe ({ option = option, service = service }) ) end -- cgit v1.2.3