Skip to content

Commit

Permalink
use es6 import (apache#5938)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and mistercrunch committed Sep 20, 2018
1 parent 5b97fe5 commit 1e5a02a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions superset/assets/src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e5a02a

Please sign in to comment.