summaryrefslogtreecommitdiffstats
path: root/provisioning-listdevices-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-listdevices-html.lsp')
-rw-r--r--provisioning-listdevices-html.lsp10
1 files changed, 5 insertions, 5 deletions
diff --git a/provisioning-listdevices-html.lsp b/provisioning-listdevices-html.lsp
index 79c2b32..2c12e99 100644
--- a/provisioning-listdevices-html.lsp
+++ b/provisioning-listdevices-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")
%>
@@ -66,10 +66,10 @@ end
$("#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", "<%= table.concat(columns, '", "') %>"];
@@ -88,7 +88,7 @@ end
}
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){
@@ -125,7 +125,7 @@ end
<% for i,g in ipairs(view.value.groups.value) do %>
<th><%= html.html_escape(g.label) %></th>
<% end %>
- </tr>
+ </tr>
</thead><tbody>
</tbody>
</table>