From efdd93c695574329b3d98455a0a88320a1c79d5b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 23 Feb 2012 14:09:03 +0000 Subject: Made modelfunctions capitalize the startstop options, and now no need for a custom view --- lib/modelfunctions.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/modelfunctions.lua') 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 -- cgit v1.2.3