diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-23 10:16:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-23 10:16:55 +0000 |
commit | da534790069b2257cd91ef539e26f72427ca628d (patch) | |
tree | 90a47b4ffc39c87239c9856a08d449c57ed586cc /interface/js | |
parent | d1e49accf9ee939b10e173c985de8b8d58859296 (diff) | |
download | rspamd-da534790069b2257cd91ef539e26f72427ca628d.tar.gz rspamd-da534790069b2257cd91ef539e26f72427ca628d.zip |
[Feature] Sort symbols in webui
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/rspamd.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 0f01dccd9..3d6484cd8 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -554,10 +554,16 @@ }, success: function (data) { $('#modalBody').empty(); + data.sort(function(a, b) { + return a.group.localeCompare(b.group); + }); $.each(data, function (i, group) { items.push(' <div class="row row-bordered" data-slider="hover">' + '<h4>' + group.group + '</h4>' + '</div>'); + group.rules.sort(function(a, b) { + return a.symbol.localeCompare(b.symbol); + }); $.each(group.rules, function (i, item) { var max = 20; var min = -20; |