Skip to content

Commit 8ab1e9b

Browse files
Update jQuery
1 parent 46703a5 commit 8ab1e9b

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

jQuery/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jQuery/src/data.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const data = [
1+
export const data = [
22
{
33
stateID: [1],
44
cityID: [1],
55
},
66
];
77

8-
const states = [
8+
export const states = [
99
{
1010
ID: 1,
1111
Name: 'Alabama',
@@ -28,7 +28,7 @@ const states = [
2828
},
2929
];
3030

31-
const cities = [
31+
export const cities = [
3232
{
3333
ID: 1,
3434
Name: 'Tuscaloosa',

jQuery/src/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
<link rel="stylesheet" type="text/css" href="index.css" />
1111
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.js"></script>
1212
<script type="text/javascript" src="../node_modules/devextreme-dist/js/dx.all.js"></script>
13-
<script type="text/javascript" src="data.js"></script>
14-
<script type="text/javascript" src="index.js"></script>
13+
<script type="module" src="index.js"></script>
1514
</head>
1615

1716
<body class="dx-viewport">

jQuery/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { data, states, cities } from './data.js';
2+
13
$(() => {
24
$('#dataGrid').dxDataGrid({
35
dataSource: data,

0 commit comments

Comments
 (0)