mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
[js linting] use airbnb eslint settings (#796)
* add airbnb eslint settings and lint all the code * fix linting erros
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
var $ = require('jquery');
|
||||
var utils = require('./modules/utils');
|
||||
|
||||
const $ = require('jquery');
|
||||
const utils = require('./modules/utils');
|
||||
$(document).ready(function () {
|
||||
$(':checkbox[data-checkbox-api-prefix]').change(function () {
|
||||
var $this = $(this);
|
||||
var prefix = $this.data('checkbox-api-prefix');
|
||||
var id = $this.attr('id');
|
||||
utils.toggleCheckbox(prefix, "#" + id);
|
||||
});
|
||||
$(':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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user