From: Alexander Moisseev Date: Wed, 4 Jul 2018 08:16:02 +0000 (+0300) Subject: [Minor] JS: Replace tabs with spaces in indentation X-Git-Tag: 1.7.8~44^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=349a86dc7eca84dfdba88b09428c1ca1d64b4809;p=thirdparty%2Frspamd.git [Minor] JS: Replace tabs with spaces in indentation --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 065b976079..9022f268b8 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 = "" + sym.name + "" + "(" + sym.score + ")"; + var str = "" + sym.name + "" + "(" + sym.score + ")"; - // Store description for tooltip - symbolDescriptions[key] = sym.description; + // Store description for tooltip + symbolDescriptions[key] = sym.description; } else { - var str = "" + sym.name + "" + "(" + sym.score + ")"; + var str = "" + sym.name + "" + "(" + 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 d1ae283317..0630f36ac3 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 () {