diff options
Diffstat (limited to 'fetchcrl-controller.lua')
-rw-r--r-- | fetchcrl-controller.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fetchcrl-controller.lua b/fetchcrl-controller.lua index d5d3e0d..c2b91eb 100644 --- a/fetchcrl-controller.lua +++ b/fetchcrl-controller.lua @@ -2,8 +2,6 @@ module (..., package.seeall) -require("controllerfunctions") - default_action = "status" status = function( self ) @@ -11,9 +9,9 @@ status = function( self ) end startstop = function( self ) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) + return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata) end expert = function( self ) - return controllerfunctions.handle_form(self, self.model.get_configfile, self.model.update_configfile, self.clientdata, "Save", "Edit Configuration", "Configuration Saved") + return self.handle_form(self, self.model.get_configfile, self.model.update_configfile, self.clientdata, "Save", "Edit Configuration", "Configuration Saved") end |