From 1e5a02a42d6695798643561d328af103a9d8e4a7 Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Thu, 20 Sep 2018 08:12:29 -0700 Subject: [PATCH] use es6 import (#5938) --- superset/assets/src/common.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/superset/assets/src/common.js b/superset/assets/src/common.js index 779a1692e8a23..69c2556844093 100644 --- a/superset/assets/src/common.js +++ b/superset/assets/src/common.js @@ -4,18 +4,17 @@ import airbnb from './modules/colorSchemes/airbnb'; import categoricalSchemes from './modules/colorSchemes/categorical'; import lyft from './modules/colorSchemes/lyft'; import { getInstance } from './modules/ColorSchemeManager'; +import { toggleCheckbox } from './modules/utils'; // Everything imported in this file ends up in the common entry file // be mindful of double-imports -const utils = require('./modules/utils'); - $(document).ready(function () { $(':checkbox[data-checkbox-api-prefix]').change(function () { const $this = $(this); const prefix = $this.data('checkbox-api-prefix'); const id = $this.attr('id'); - utils.toggleCheckbox(prefix, '#' + id); + toggleCheckbox(prefix, '#' + id); }); // for language picker dropdown