From 7385d0b070e2aa4a367b8864fcaad00e65fabb18 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 30 Mar 2009 17:01:05 +0000 Subject: applications/luci-asterisk: fix voicemail storage option, don't load tzdata in mailbox mgmnt. --- applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 3 --- .../luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'applications/luci-asterisk/luasrc/model/cbi/asterisk') diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua index efd6a29167..1c92d0dbfe 100644 --- a/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua +++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua @@ -12,9 +12,6 @@ You may obtain a copy of the License at $Id$ ]]-- -require "luci.sys.zoneinfo" - - cbimap = Map("asterisk", "Voicemail - Mailboxes") voicemail = cbimap:section(TypedSection, "voicemail", "Voicemail Boxes") diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua index 8ad3ee1e51..cad2adb95f 100644 --- a/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua +++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua @@ -25,7 +25,8 @@ voicegeneral = cbimap:section(TypedSection, "voicegeneral", voicegeneral.anonymous = true voicegeneral.addremove = false -format = voicegeneral:option(ListValue, "Storage format") +format = voicegeneral:option(MultiValue, "Used storage formats") +format.widget = "checkbox" format:value("wav49") format:value("gsm") format:value("wav") -- cgit v1.2.3