]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Fix indentation
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:39:58 +0000 (12:39 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:39:58 +0000 (12:39 +0300)
interface/js/app/history.js

index 4280e5854de47e750e51e750c4c71c7cba91f6c2..00fdc952884d558cd1ae752c167d9881cf25e155 100644 (file)
@@ -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
                             }
                         });
                     }