diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-04 11:16:02 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-04 11:16:02 +0300 |
commit | 349a86dc7eca84dfdba88b09428c1ca1d64b4809 (patch) | |
tree | 73b1a02155418aa83d71121b73311cb9692b7f07 /interface/js | |
parent | 20013a85adffbfb473dfba16877c2009408e8069 (diff) | |
download | rspamd-349a86dc7eca84dfdba88b09428c1ca1d64b4809.tar.gz rspamd-349a86dc7eca84dfdba88b09428c1ca1d64b4809.zip |
[Minor] JS: Replace tabs with spaces in indentation
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/app/history.js | 30 | ||||
-rw-r--r-- | interface/js/app/rspamd.js | 2 |
2 files changed, 16 insertions, 16 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 065b97607..9022f268b 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -69,7 +69,7 @@ define(["jquery", "footable", "humanize"], } sym.name = EscapeHTML(key); if (sym.description) { - sym.description = EscapeHTML(sym.description); + sym.description = EscapeHTML(sym.description); } if (sym.options) { @@ -158,12 +158,12 @@ define(["jquery", "footable", "humanize"], var sym = item.symbols[key]; if (sym.description) { - var str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>" + "(" + sym.score + ")"; + var str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>" + "(" + sym.score + ")"; - // Store description for tooltip - symbolDescriptions[key] = sym.description; + // Store description for tooltip + symbolDescriptions[key] = sym.description; } else { - var str = "<strong>" + sym.name + "</strong>" + "(" + sym.score + ")"; + var str = "<strong>" + sym.name + "</strong>" + "(" + sym.score + ")"; } if (sym.options) { @@ -518,9 +518,9 @@ define(["jquery", "footable", "humanize"], var self = e.data.self, selected = $(this).val(); if (selected !== self.def) { if(selected === "reject"){ - self.addFilter("action", "reject -soft", [ "action" ]); + self.addFilter("action", "reject -soft", [ "action" ]); } else { - self.addFilter("action", selected, [ "action" ]); + self.addFilter("action", selected, [ "action" ]); } } else { self.removeFilter("action"); @@ -604,10 +604,10 @@ define(["jquery", "footable", "humanize"], "filtering": FooTable.actionFilter }, "on": { - "ready.ft.table": drawTooltips, - "after.ft.sorting": drawTooltips, - "after.ft.paging": drawTooltips, - "after.ft.filtering": drawTooltips + "ready.ft.table": drawTooltips, + "after.ft.sorting": drawTooltips, + "after.ft.paging": drawTooltips, + "after.ft.filtering": drawTooltips } }); } else { @@ -651,10 +651,10 @@ define(["jquery", "footable", "humanize"], "filtering": FooTable.actionFilter }, "on": { - "ready.ft.table": drawTooltips, - "after.ft.sorting": drawTooltips, - "after.ft.paging": drawTooltips, - "after.ft.filtering": drawTooltips + "ready.ft.table": drawTooltips, + "after.ft.sorting": drawTooltips, + "after.ft.paging": drawTooltips, + "after.ft.filtering": drawTooltips } }); } diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index d1ae28331..0630f36ac 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -198,7 +198,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, }, 1000); }); - $.ajax({ + $.ajax({ type: "GET", url: "stat", success: function () { |