diff options
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/rspamd.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 688715e24..6cfca7373 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -556,6 +556,12 @@ function getHistory() { if (history) { + var history_length = document.getElementsByName('historyLog_length')[0]; + if (history_length !== undefined) { + history_length = parseInt(history_length.value); + } else { + history_length = 10; + } history.destroy(); $('#historyLog').children('tbody').remove(); } @@ -608,7 +614,8 @@ }); $('<tbody/>', { html: items.join('') }).insertAfter('#historyLog thead'); history = $('#historyLog').DataTable({ - "order": [[ 0, "desc" ]] + "order": [[ 0, "desc" ]], + "pageLength": history_length }); } }); |