aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-10-15 16:58:18 +0300
committerGitHub <noreply@github.com>2016-10-15 16:58:18 +0300
commit48e922586cea1a47afa2e135ee78f313d4d20499 (patch)
tree5de94939e832c5eea6ebf0f14ae841fd933fda3c /interface
parent2e2b739c50a5f887624c54a1a3cd5030e5647eee (diff)
downloadrspamd-48e922586cea1a47afa2e135ee78f313d4d20499.tar.gz
rspamd-48e922586cea1a47afa2e135ee78f313d4d20499.zip
[WebUI] Improve history table length drop-down menu
- set sane table lengths - save table display information (using a cookie) Issue: #1027 Reported by: @fenice2
Diffstat (limited to 'interface')
-rw-r--r--interface/js/rspamd.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index df6b6d789..da2c06917 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -620,6 +620,8 @@
});
$('<tbody/>', { html: items.join('') }).insertAfter('#historyLog thead');
history = $('#historyLog').DataTable({
+ "aLengthMenu": [[100, 200, -1], [100, 200, "All"]],
+ "bStateSave": true,
"order": [[ 0, "desc" ]],
"pageLength": history_length
});