]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Improve history table length drop-down menu
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 15 Oct 2016 13:58:18 +0000 (16:58 +0300)
committerGitHub <noreply@github.com>
Sat, 15 Oct 2016 13:58:18 +0000 (16:58 +0300)
- set sane table lengths
- save table display information (using a cookie)

Issue: #1027
Reported by: @fenice2

interface/js/rspamd.js

index df6b6d789b1e30bdeae78b384275d3bc26b6d65f..da2c0691791fe4b8036f221e5d89620deff4dc70 100644 (file)
                     });
                     $('<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
                     });