summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-09-13 13:51:51 +0000
committerTed Trask <ttrask01@yahoo.com>2010-09-13 13:51:51 +0000
commitea84f74cdb90c3c56051677d51b6971c53ec2d2a (patch)
tree632d0532dc18f6f6e5c788ffbbed0d92e091ffc4
parent602abbdf57454e72395141094397ef66f3aaad99 (diff)
downloadacf-freeswitch-vmail-ea84f74cdb90c3c56051677d51b6971c53ec2d2a.tar.bz2
acf-freeswitch-vmail-ea84f74cdb90c3c56051677d51b6971c53ec2d2a.tar.xz
Updated listmessages view layout and sort users.
-rw-r--r--vmail-listmessages-html.lsp7
1 files changed, 4 insertions, 3 deletions
diff --git a/vmail-listmessages-html.lsp b/vmail-listmessages-html.lsp
index 837232c..26373cf 100644
--- a/vmail-listmessages-html.lsp
+++ b/vmail-listmessages-html.lsp
@@ -6,6 +6,7 @@ require("viewfunctions")
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 = {}
+ 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
useroptions[#useroptions+1] = '<option value="'..html.html_escape(u.username)..'">'..html.html_escape(u.firstname)..' '..html.html_escape(u.lastname)..' ('..html.html_escape(u.username)..')</option>'
@@ -90,8 +91,8 @@ end
" method="POST">
<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
<input class="hidden" type="hidden" name="message" value="" >
- <select name="newuser"><%= (useroptions or "") %></select>
<input class="submit" type="submit" value="Forward">
+ <select name="newuser" style="width:auto;"><%= (useroptions or "") %></select>
</form>
<% end %>
<% if viewlibrary.check_permission("emailmessage") or viewlibrary.check_permission("emailmymessage") then %>
@@ -100,8 +101,8 @@ end
" method="POST">
<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
<input class="hidden" type="hidden" name="message" value="" >
- <input class="text" type="text" name="address" value="" >
<input class="submit" type="submit" value="E-mail">
+ <input class="text" type="text" name="address" value="" style="width:auto;">
</form>
<% end %>
<% if viewlibrary.check_permission("movemessage") or viewlibrary.check_permission("movemymessage") then %>
@@ -111,8 +112,8 @@ end
" method="POST">
<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
<input class="hidden" type="hidden" name="message" value="" >
- <select name="newfolder"><%= (folderoptions or "") %></select>
<input class="submit" type="submit" value="Move">
+ <select name="newfolder" style="width:auto;"><%= (folderoptions or "") %></select>
</form>
<% end %>
<% end %>