aboutsummaryrefslogtreecommitdiffstats
path: root/demos/sortable
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-06-30 23:09:22 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-07-21 11:00:42 -0400
commit19328423fe0fae1381319911357dc9ad12c3d274 (patch)
tree17a89106f3f1f064cef2990cb15c4494750d1557 /demos/sortable
parent78364a2428d56c4867a65c9715f33bbde7459e18 (diff)
downloadjquery-ui-19328423fe0fae1381319911357dc9ad12c3d274.tar.gz
jquery-ui-19328423fe0fae1381319911357dc9ad12c3d274.zip
Sortable: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos/sortable')
-rw-r--r--demos/sortable/connect-lists.html10
-rw-r--r--demos/sortable/default.html9
-rw-r--r--demos/sortable/display-grid.html10
-rw-r--r--demos/sortable/empty-lists.html10
-rw-r--r--demos/sortable/items.html10
-rw-r--r--demos/sortable/placeholder.html10
-rw-r--r--demos/sortable/portlets.html10
7 files changed, 14 insertions, 55 deletions
diff --git a/demos/sortable/connect-lists.html b/demos/sortable/connect-lists.html
index 834cb560a..4461e7364 100644
--- a/demos/sortable/connect-lists.html
+++ b/demos/sortable/connect-lists.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Connect lists</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable1, #sortable2 {
@@ -28,12 +23,11 @@
width: 120px;
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".connectedSortable"
}).disableSelection();
- });
</script>
</head>
<body>
diff --git a/demos/sortable/default.html b/demos/sortable/default.html
index 6d3e742db..ff24e239c 100644
--- a/demos/sortable/default.html
+++ b/demos/sortable/default.html
@@ -4,19 +4,14 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Default functionality</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
#sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
#sortable li span { position: absolute; margin-left: -1.3em; }
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
});
diff --git a/demos/sortable/display-grid.html b/demos/sortable/display-grid.html
index 3e8e5be75..8f0f6ae35 100644
--- a/demos/sortable/display-grid.html
+++ b/demos/sortable/display-grid.html
@@ -4,21 +4,15 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Display as grid</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable { list-style-type: none; margin: 0; padding: 0; width: 450px; }
#sortable li { margin: 3px 3px 3px 0; padding: 1px; float: left; width: 100px; height: 90px; font-size: 4em; text-align: center; }
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
- });
</script>
</head>
<body>
diff --git a/demos/sortable/empty-lists.html b/demos/sortable/empty-lists.html
index 192544619..fa515b377 100644
--- a/demos/sortable/empty-lists.html
+++ b/demos/sortable/empty-lists.html
@@ -4,18 +4,13 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Handle empty lists</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable1, #sortable2, #sortable3 { list-style-type: none; margin: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 143px;}
#sortable1 li, #sortable2 li, #sortable3 li { margin: 5px; padding: 5px; font-size: 1.2em; width: 120px; }
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "ul.droptrue" ).sortable({
connectWith: "ul"
});
@@ -26,7 +21,6 @@
});
$( "#sortable1, #sortable2, #sortable3" ).disableSelection();
- });
</script>
</head>
<body>
diff --git a/demos/sortable/items.html b/demos/sortable/items.html
index b6ed39235..21a7230d5 100644
--- a/demos/sortable/items.html
+++ b/demos/sortable/items.html
@@ -4,18 +4,13 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Include / exclude items</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; zoom: 1; }
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 3px; width: 90%; }
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#sortable1" ).sortable({
items: "li:not(.ui-state-disabled)"
});
@@ -25,7 +20,6 @@
});
$( "#sortable1 li, #sortable2 li" ).disableSelection();
- });
</script>
</head>
<body>
diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html
index c925b77ad..7a17e6914 100644
--- a/demos/sortable/placeholder.html
+++ b/demos/sortable/placeholder.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Drop placeholder</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
@@ -16,13 +11,12 @@
html>body #sortable li { height: 1.5em; line-height: 1.2em; }
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#sortable" ).sortable({
placeholder: "ui-state-highlight"
});
$( "#sortable" ).disableSelection();
- });
</script>
</head>
<body>
diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html
index 42ddb4444..a3f42a254 100644
--- a/demos/sortable/portlets.html
+++ b/demos/sortable/portlets.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Sortable - Portlets</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/sortable.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
body {
@@ -43,8 +38,8 @@
height: 50px;
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( ".column" ).sortable({
connectWith: ".column",
handle: ".portlet-header",
@@ -63,7 +58,6 @@
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
});
- });
</script>
</head>
<body>