From ea84f74cdb90c3c56051677d51b6971c53ec2d2a Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 13 Sep 2010 13:51:51 +0000 Subject: Updated listmessages view layout and sort users. --- vmail-listmessages-html.lsp | 7 ++++--- 1 file 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] = '' @@ -90,8 +91,8 @@ end " method="POST"> - + <% end %> <% if viewlibrary.check_permission("emailmessage") or viewlibrary.check_permission("emailmymessage") then %> @@ -100,8 +101,8 @@ end " method="POST"> - + <% end %> <% if viewlibrary.check_permission("movemessage") or viewlibrary.check_permission("movemymessage") then %> @@ -111,8 +112,8 @@ end " method="POST"> - + <% end %> <% end %> -- cgit v1.2.3