This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 1e5a02a use es6 import (#5938)
1e5a02a is described below
commit 1e5a02a42d6695798643561d328af103a9d8e4a7
Author: Krist Wongsuphasawat <[email protected]>
AuthorDate: Thu Sep 20 08:12:29 2018 -0700
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 779a169..69c2556 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