diff options
author | root <root@trask19.(none)> | 2009-06-04 15:48:12 +0000 |
---|---|---|
committer | root <root@trask19.(none)> | 2009-06-04 15:48:12 +0000 |
commit | 291221a3fcbc820943fe3505b2a6d6534f36b67c (patch) | |
tree | e03a921c0d9549ae2f9da99475cb04d67fab3071 | |
parent | 9ec5b6b4903cdab7cc03a82304415a0db647c4b6 (diff) | |
download | acf-fetchmail-291221a3fcbc820943fe3505b2a6d6534f36b67c.tar.bz2 acf-fetchmail-291221a3fcbc820943fe3505b2a6d6534f36b67c.tar.xz |
Updated for startstop in core 0.5.0
-rw-r--r-- | fetchmail-controller.lua | 2 | ||||
-rw-r--r-- | fetchmail-model.lua | 4 | ||||
-rw-r--r-- | 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 @@ <form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action) %>" method="POST"> <DT>Program control-panel</DT> <DD> -<input class="submit" type="submit" name="action" value="Start" <% if data.value.status.value== "Running" then io.write("disabled") end %>> -<input class="submit" type="submit" name="action" value="Stop" <% if data.value.status.value== "Stopped" then io.write("disabled") end %>> -<input class="submit" type="submit" name="action" value="Restart" <% if data.value.status.value== "Stopped" then io.write("disabled") end %>> +<input class="submit" type="submit" name="action" value="Start"> +<input class="submit" type="submit" name="action" value="Stop"> +<input class="submit" type="submit" name="action" value="Restart"> </DD> <DT>Run once</DT> <DD> -<input class="submit" type="submit" name="action" value="Run" <% if data.value.status.value== "Running" then io.write("disabled") end %>> +<input class="submit" type="submit" name="action" value="Run"> </DD> <DT>Test</DT> <DD> -<input class="submit" type="submit" name="action" value="Test" <% if data.value.status.value== "Running" then io.write("disabled") end %>> +<input class="submit" type="submit" name="action" value="Test"> </DD> </form> </DL> |