Skip to content

Commit affed9c

Browse files
committed
Selectable: Update demos to use AMD
1 parent c942b97 commit affed9c

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

demos/selectable/default.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<meta charset="utf-8">
55
<title>jQuery UI Selectable - Default functionality</title>
66
<link rel="stylesheet" href="../../themes/base/all.css">
7-
<script src="../../external/jquery/jquery.js"></script>
8-
<script src="../../ui/core.js"></script>
9-
<script src="../../ui/widget.js"></script>
10-
<script src="../../ui/mouse.js"></script>
11-
<script src="../../ui/selectable.js"></script>
127
<link rel="stylesheet" href="../demos.css">
138

149
<style>
@@ -18,10 +13,9 @@
1813
#selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
1914
#selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
2015
</style>
21-
<script>
22-
$(function() {
16+
<script src="../../external/requirejs/require.js"></script>
17+
<script src="../bootstrap.js">
2318
$( "#selectable" ).selectable();
24-
});
2519
</script>
2620
</head>
2721
<body>

demos/selectable/display-grid.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<meta charset="utf-8">
55
<title>jQuery UI Selectable - Display as grid</title>
66
<link rel="stylesheet" href="../../themes/base/all.css">
7-
<script src="../../external/jquery/jquery.js"></script>
8-
<script src="../../ui/core.js"></script>
9-
<script src="../../ui/widget.js"></script>
10-
<script src="../../ui/mouse.js"></script>
11-
<script src="../../ui/selectable.js"></script>
127
<link rel="stylesheet" href="../demos.css">
138

149
<style>
@@ -18,10 +13,9 @@
1813
#selectable { list-style-type: none; margin: 0; padding: 0; width: 450px; }
1914
#selectable li { margin: 3px; padding: 1px; float: left; width: 100px; height: 80px; font-size: 4em; text-align: center; }
2015
</style>
21-
<script>
22-
$(function() {
16+
<script src="../../external/requirejs/require.js"></script>
17+
<script src="../bootstrap.js">
2318
$( "#selectable" ).selectable();
24-
});
2519
</script>
2620
</head>
2721
<body>

demos/selectable/serialize.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<meta charset="utf-8">
55
<title>jQuery UI Selectable - Serialize</title>
66
<link rel="stylesheet" href="../../themes/base/all.css">
7-
<script src="../../external/jquery/jquery.js"></script>
8-
<script src="../../ui/core.js"></script>
9-
<script src="../../ui/widget.js"></script>
10-
<script src="../../ui/mouse.js"></script>
11-
<script src="../../ui/selectable.js"></script>
127
<link rel="stylesheet" href="../demos.css">
138

149
<style>
@@ -18,8 +13,8 @@
1813
#selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
1914
#selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
2015
</style>
21-
<script>
22-
$(function() {
16+
<script src="../../external/requirejs/require.js"></script>
17+
<script src="../bootstrap.js">
2318
$( "#selectable" ).selectable({
2419
stop: function() {
2520
var result = $( "#select-result" ).empty();
@@ -29,7 +24,6 @@
2924
});
3025
}
3126
});
32-
});
3327
</script>
3428
</head>
3529
<body>

0 commit comments

Comments
 (0)