From d5eedf6db07505aee5ba0d644d90522905d22234 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 6 Nov 2012 23:49:59 +0000 Subject: Changed viewtype ajax to json as per acf-core-0.15.3, and moved viewtype stream out of controller --- health-controller.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'health-controller.lua') diff --git a/health-controller.lua b/health-controller.lua index 3b2bbf1..f5cc26c 100644 --- a/health-controller.lua +++ b/health-controller.lua @@ -22,9 +22,7 @@ end networkstats = function(self) local retval = self.model.get_networkstats() - if self.clientdata.viewtype then - self.conf.viewtype = "ajax" - else + if self.conf.viewtype == "html" then local intf = self:new("alpine-baselayout/interfaces") local interfaces = intf.model.get_addresses() intf:destroy() -- cgit v1.2.3