From: Alexander Moisseev Date: Sat, 15 Oct 2016 13:58:18 +0000 (+0300) Subject: [WebUI] Improve history table length drop-down menu X-Git-Tag: 1.4.0~254^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48e922586cea1a47afa2e135ee78f313d4d20499;p=rspamd.git [WebUI] Improve history table length drop-down menu - set sane table lengths - save table display information (using a cookie) Issue: #1027 Reported by: @fenice2 --- 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 @@ }); $('', { html: items.join('') }).insertAfter('#historyLog thead'); history = $('#historyLog').DataTable({ + "aLengthMenu": [[100, 200, -1], [100, 200, "All"]], + "bStateSave": true, "order": [[ 0, "desc" ]], "pageLength": history_length });