summaryrefslogtreecommitdiffstats
path: root/interface/js/main.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-03 12:13:39 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-03 12:13:39 +0300
commitba2a5ba57c2d0f0c8abc080c3c6aacd2835770c2 (patch)
treee28e146d65879382754e2da49655053ca29e0655 /interface/js/main.js
parent54b5410172c7c95948f59ad6ecb48f0f2fc0698e (diff)
downloadrspamd-ba2a5ba57c2d0f0c8abc080c3c6aacd2835770c2.tar.gz
rspamd-ba2a5ba57c2d0f0c8abc080c3c6aacd2835770c2.zip
[Minor] JS: Use double quotes wherever possible
Diffstat (limited to 'interface/js/main.js')
-rw-r--r--interface/js/main.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/interface/js/main.js b/interface/js/main.js
index 76ceec468..60f16ae14 100644
--- a/interface/js/main.js
+++ b/interface/js/main.js
@@ -1,23 +1,23 @@
requirejs.config({
- baseUrl: 'js/lib',
+ baseUrl: "js/lib",
paths: {
- app: '../app',
- jquery: 'jquery-3.3.1.min',
- visibility: 'visibility.min',
- humanize: 'humanize.min',
- bootstrap: 'bootstrap.min',
- d3: 'd3.min',
- d3evolution: 'd3evolution.min',
- d3pie: 'd3pie.min',
- footable: 'footable.min',
- bootstrap: 'bootstrap.min',
+ app: "../app",
+ jquery: "jquery-3.3.1.min",
+ visibility: "visibility.min",
+ humanize: "humanize.min",
+ bootstrap: "bootstrap.min",
+ d3: "d3.min",
+ d3evolution: "d3evolution.min",
+ d3pie: "d3pie.min",
+ footable: "footable.min",
+ bootstrap: "bootstrap.min",
},
shim: {
- d3: {exports: 'd3'},
- bootstrap: {exports: 'bootstrap', deps: ['jquery']},
- d3pie: {exports: 'd3pie', deps: ['d3.global', 'jquery']},
- d3evolution: {exports: 'D3Evolution', deps: ['d3', 'd3pie', 'jquery']},
- footable: {deps: ['bootstrap', 'jquery']}
+ d3: {exports: "d3"},
+ bootstrap: {exports: "bootstrap", deps: ["jquery"]},
+ d3pie: {exports: "d3pie", deps: ["d3.global", "jquery"]},
+ d3evolution: {exports: "D3Evolution", deps: ["d3", "d3pie", "jquery"]},
+ footable: {deps: ["bootstrap", "jquery"]}
}
});
@@ -31,10 +31,10 @@ define("d3.global", ["d3"], function(_) {
});
// Load main UI
-require(['domReady'],
+require(["domReady"],
function(domReady) {
domReady(function () {
- require(['jquery', 'd3', 'app/rspamd'],
+ require(["jquery", "d3", "app/rspamd"],
function ($, d3, rspamd) {
rspamd.setup();
rspamd.connect();