summaryrefslogtreecommitdiffstats
path: root/interface/js/main.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2017-09-23 20:41:00 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2017-09-23 20:41:00 +0300
commit206c7ace04661c1769b456c8dc95f39e20d810b4 (patch)
treee7ab4f35e0ec2c3b10e15c9cee59b1b262d65a24 /interface/js/main.js
parent8dd0d7abaad97d9845f66f7ff814256dd577e072 (diff)
downloadrspamd-206c7ace04661c1769b456c8dc95f39e20d810b4.tar.gz
rspamd-206c7ace04661c1769b456c8dc95f39e20d810b4.zip
[WebUI] Migrate widgets to D3 v4
Diffstat (limited to 'interface/js/main.js')
-rw-r--r--interface/js/main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/interface/js/main.js b/interface/js/main.js
index a403797b8..1470ccc95 100644
--- a/interface/js/main.js
+++ b/interface/js/main.js
@@ -15,18 +15,22 @@ requirejs.config({
shim: {
d3: {exports: 'd3'},
bootstrap: {exports: 'bootstrap', deps: ['jquery']},
- d3pie: {exports: 'd3pie', deps: ['d3', 'jquery']},
+ d3pie: {exports: 'd3pie', deps: ['d3.global', 'jquery']},
d3evolution: {exports: 'D3Evolution', deps: ['d3', 'd3pie', 'jquery']},
footable: {deps: ['bootstrap', 'jquery']}
}
});
+define("d3.global", ["d3"], function(_) {
+ d3 = _;
+});
+
// Load main UI
require(['domReady'],
function(domReady) {
domReady(function () {
- require(['jquery', 'app/rspamd'],
- function ($, rspamd) {
+ require(['jquery', 'd3', 'app/rspamd'],
+ function ($, d3, rspamd) {
rspamd.setup();
rspamd.connect();
});