]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Replace tabs with spaces in indentation
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 08:16:02 +0000 (11:16 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 08:16:02 +0000 (11:16 +0300)
interface/js/app/history.js
interface/js/app/rspamd.js

index 065b976079521375799cb287df0e06830acd8fd6..9022f268b82c3b26f1f51df49886a88781f89323 100644 (file)
@@ -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
                             }
                         });
                     }
index d1ae283317f30a71534462d6b529a96e1f8b2b42..0630f36ac37a8f32e3efaccb143b268d425ec320 100644 (file)
@@ -198,7 +198,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
             }, 1000);
         });
 
-           $.ajax({
+        $.ajax({
             type: "GET",
             url: "stat",
             success: function () {