aboutsummaryrefslogtreecommitdiffstats
path: root/demos/draggable/sortable.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-10 09:17:58 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-10 09:17:58 -0400
commit6cf45dd25a98f98c91a4000345fc5597f9929939 (patch)
tree192ef4a8128f42d980c5415136a0dca0057aa4d4 /demos/draggable/sortable.html
parent98fb8c836220730bb9d7c0d73d6766d2b898d773 (diff)
downloadjquery-ui-6cf45dd25a98f98c91a4000345fc5597f9929939.tar.gz
jquery-ui-6cf45dd25a98f98c91a4000345fc5597f9929939.zip
Draggable demos: Coding standards.
Diffstat (limited to 'demos/draggable/sortable.html')
-rw-r--r--demos/draggable/sortable.html42
1 files changed, 21 insertions, 21 deletions
diff --git a/demos/draggable/sortable.html b/demos/draggable/sortable.html
index a87ddc0ef..c405e4825 100644
--- a/demos/draggable/sortable.html
+++ b/demos/draggable/sortable.html
@@ -1,35 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
+ <meta charset="utf-8">
<title>jQuery UI Draggable + Sortable</title>
- <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.sortable.js"></script>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <style type="text/css">
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+ <script src="../../jquery-1.4.2.js"></script>
+ <script src="../../ui/jquery.ui.core.js"></script>
+ <script src="../../ui/jquery.ui.widget.js"></script>
+ <script src="../../ui/jquery.ui.mouse.js"></script>
+ <script src="../../ui/jquery.ui.draggable.js"></script>
+ <script src="../../ui/jquery.ui.sortable.js"></script>
+ <link rel="stylesheet" href="../demos.css">
+ <style>
.demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; }
.demo li { margin: 5px; padding: 5px; width: 150px; }
</style>
- <script type="text/javascript">
+ <script>
$(function() {
- $("#sortable").sortable({
+ $( "#sortable" ).sortable({
revert: true
});
- $("#draggable").draggable({
- connectToSortable: '#sortable',
- helper: 'clone',
- revert: 'invalid'
+ $( "#draggable" ).draggable({
+ connectToSortable: "#sortable",
+ helper: "clone",
+ revert: "invalid"
});
- $("ul, li").disableSelection();
+ $( "ul, li" ).disableSelection();
});
</script>
</head>
<body>
+
<div class="demo">
<ul>
@@ -46,12 +47,11 @@
</div><!-- End demo -->
-<div class="demo-description">
-<p>
-Draggables are built to interact seamlessly with <a href="#">sortables</a>.
-</p>
+<div class="demo-description">
+<p>Draggables are built to interact seamlessly with <a href="#">sortables</a>.</p>
</div><!-- End demo-description -->
+
</body>
</html>