]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix history display
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Mar 2017 09:57:59 +0000 (10:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Mar 2017 09:57:59 +0000 (10:57 +0100)
interface/js/app/history.js

index 6dcc3e612f6a6cc7309f358549c537112af45143..02c277d2fb4fd0fa7b142086326345140b82d85d 100644 (file)
@@ -423,7 +423,8 @@ function($, _, Humanize) {
                     .map(function (d){ return d.data; });
                 if (neighbours_data.length > 0) {
                     var data = {};
-                    data.rows = neighbours_data.map(function(e) {return e.rows;});
+                    data.rows = [].concat.apply([], neighbours_data
+                        .map(function(e) {return e.rows;}));
                     data.version = neighbours_data[0].version;
 
                     var items = process_history_data(data);
@@ -488,7 +489,7 @@ function($, _, Humanize) {
         $('#updateHistory').off('click');
         $('#updateHistory').on('click', function (e) {
             e.preventDefault();
-            interface.getHistory(rspamd, tables);
+            interface.getHistory(rspamd, tables, neighbours, checked_server);
         });
 
         // @reset history log