summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-02-23 14:09:03 +0000
committerTed Trask <ttrask01@yahoo.com>2012-02-23 14:09:03 +0000
commitefdd93c695574329b3d98455a0a88320a1c79d5b (patch)
tree267283ac7383989f1ec174c6b851fc02d9463437 /lib
parent7a094cf04dd3fe002bf568e5bdbc29ddd833fb29 (diff)
downloadacf-core-efdd93c695574329b3d98455a0a88320a1c79d5b.tar.bz2
acf-core-efdd93c695574329b3d98455a0a88320a1c79d5b.tar.xz
Made modelfunctions capitalize the startstop options, and now no need for a custom view
Diffstat (limited to 'lib')
-rw-r--r--lib/modelfunctions.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua
index efc3693..49f040d 100644
--- a/lib/modelfunctions.lua
+++ b/lib/modelfunctions.lua
@@ -24,6 +24,10 @@ function get_startstop(servicename)
local errtxt
if not actions then
errtxt = descr
+ else
+ for i,v in ipairs(actions) do
+ actions[i] = v:gsub("^%l", string.upper)
+ end
end
return cfe({ type="group", label="Management", value={servicename=service}, option=actions, errtxt=errtxt })
end