From 93f73add9fc49f773002cbf0b1af183fad8bad21 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 4 Aug 2021 13:50:38 +0530 Subject: [PATCH] the charts library should only be used in the inner scope --- www/common/{common-charts.js => inner/charts.js} | 0 www/form/inner.js | 3 ++- www/test/inner.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename www/common/{common-charts.js => inner/charts.js} (100%) diff --git a/www/common/common-charts.js b/www/common/inner/charts.js similarity index 100% rename from www/common/common-charts.js rename to www/common/inner/charts.js diff --git a/www/form/inner.js b/www/form/inner.js index 410918787..a7e9f09f5 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -23,6 +23,7 @@ define([ '/common/inner/share.js', '/common/inner/access.js', '/common/inner/properties.js', + '/common/inner/charts.js', '/lib/datepicker/flatpickr.js', '/bower_components/sortablejs/Sortable.min.js', @@ -60,7 +61,7 @@ define([ DiffMd, SFCodeMirror, CMeditor, - Share, Access, Properties, + Share, Access, Properties, Charts, Flatpickr, Sortable ) diff --git a/www/test/inner.js b/www/test/inner.js index 4e3084d67..5986f7c01 100644 --- a/www/test/inner.js +++ b/www/test/inner.js @@ -1,6 +1,6 @@ define([ '/common/hyperscript.js', - '/common/common-charts.js', + '/common/inner/charts.js', '/common/common-util.js', ], function (h, Charts, Util) { var wrap = function (content) {