diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-09-14 14:56:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-09-14 14:56:16 +0000 |
commit | 2bcaf46e0a867be25a88f9cd7772406ad2c22c6a (patch) | |
tree | 49d8bc9f9069606400ba7b1da9a3ce38bd377df5 | |
parent | 4929dbf13571074ce9bc0bf01bd34893da912d73 (diff) | |
download | acf-freeswitch-vmail-2bcaf46e0a867be25a88f9cd7772406ad2c22c6a.tar.bz2 acf-freeswitch-vmail-2bcaf46e0a867be25a88f9cd7772406ad2c22c6a.tar.xz |
Added blank entries at start of dropdown lists.
-rw-r--r-- | vmail-listmessages-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vmail-listmessages-html.lsp b/vmail-listmessages-html.lsp index f0d44b3..28f6eba 100644 --- a/vmail-listmessages-html.lsp +++ b/vmail-listmessages-html.lsp @@ -5,7 +5,7 @@ require("viewfunctions") <% -- Pregenerate the list of users if viewlibrary.check_permission("listusers") and (viewlibrary.check_permission("forwardmessage") or viewlibrary.check_permission("forwardmymessage")) then local users = viewlibrary.dispatch_component("listusers", nil, true) - useroptions = {} + useroptions = {"<option></option>"} table.sort(users.value, function(a,b) if a.firstname ~= b.firstname then return a.firstname < b.firstname elseif a.lastname ~= b.lastname then return a.lastname < b.lastname else return a.username < b.username end end) for i,u in ipairs(users.value) do if u.username ~= session.userinfo.userid then @@ -26,7 +26,7 @@ if viewlibrary.check_permission("listfolders") then if #folders.value <= 1 then dontmove = true end - folderoptions = {} + folderoptions = {"<option></option>"} for i,u in ipairs(folders.value) do folderoptions[#folderoptions+1] = '<option value="'..html.html_escape(u.in_folder)..'">'..html.html_escape(u.label)..'</option>' end |