mirror of https://github.com/apache/superset.git
use es6 import (#5938)
This commit is contained in:
parent
5b97fe5c0c
commit
1e5a02a42d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue