diff options
Diffstat (limited to 'vmail-listusers-html.lsp')
-rw-r--r-- | vmail-listusers-html.lsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vmail-listusers-html.lsp b/vmail-listusers-html.lsp index 6e621e0..704905e 100644 --- a/vmail-listusers-html.lsp +++ b/vmail-listusers-html.lsp @@ -1,4 +1,4 @@ -<% local view, viewlibrary, page_info, session = ... +<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> @@ -40,10 +40,10 @@ html = require("acf.html") $("#list").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra', 'filter', 'pager'], widgetOptions: { // Filtering is handled by the server filter_serversideFiltering: true, - + // We can put the page number and size here, filtering and sorting handled by pager_customAjaxUrl pager_ajaxUrl : '<%= html.html_escape(page_info.script .. page_info.orig_action) %>?viewtype=json&page={page+1}&pagesize={size}', - + // Modify the url after all processing has been applied to handle filtering and sorting pager_customAjaxUrl: function(table, url) { var columns = ["action", "username", "firstname", "lastname"]; @@ -62,7 +62,7 @@ html = require("acf.html") } return url; }, - + // process ajax so that the following information is returned: // [ total_rows (number), rows (array of arrays), headers (array; optional) ] pager_ajaxProcessing: function(data){ @@ -96,7 +96,7 @@ html = require("acf.html") <th>Extension</th> <th>First Name</th> <th>Last Name</th> - </tr> + </tr> </thead><tbody> </tbody> </table> |