From 291221a3fcbc820943fe3505b2a6d6534f36b67c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Jun 2009 15:48:12 +0000 Subject: Updated for startstop in core 0.5.0 --- fetchmail-controller.lua | 2 +- fetchmail-model.lua | 4 ++-- fetchmail-startstop-html.lsp | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fetchmail-controller.lua b/fetchmail-controller.lua index 9a7ff33..404c05b 100644 --- a/fetchmail-controller.lua +++ b/fetchmail-controller.lua @@ -9,7 +9,7 @@ function status(self) end function startstop(self) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) end function editconfig(self) diff --git a/fetchmail-model.lua b/fetchmail-model.lua index eab1701..9dde434 100644 --- a/fetchmail-model.lua +++ b/fetchmail-model.lua @@ -367,8 +367,8 @@ end function startstop_service(action) local result = modelfunctions.startstop_service(processname, action) - table.insert(result.value.actions.value, "run") - table.insert(result.value.actions.value, "test") + table.insert(result.value.actions.value, "Run") + table.insert(result.value.actions.value, "Test") if action and (action:lower() == "run" or action:lower() == "test") then result.value.result.errtxt = nil local cmd diff --git a/fetchmail-startstop-html.lsp b/fetchmail-startstop-html.lsp index e337550..9454c5c 100644 --- a/fetchmail-startstop-html.lsp +++ b/fetchmail-startstop-html.lsp @@ -14,17 +14,17 @@
" method="POST">
Program control-panel
-> -> -> + + +
Run once
-> +
Test
-> +
-- cgit v1.2.3