aboutsummaryrefslogtreecommitdiffstats
path: root/demos/sortable/connect-lists-through-tabs.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/sortable/connect-lists-through-tabs.html')
-rw-r--r--demos/sortable/connect-lists-through-tabs.html49
1 files changed, 24 insertions, 25 deletions
diff --git a/demos/sortable/connect-lists-through-tabs.html b/demos/sortable/connect-lists-through-tabs.html
index d432afe9c..9b48ede67 100644
--- a/demos/sortable/connect-lists-through-tabs.html
+++ b/demos/sortable/connect-lists-through-tabs.html
@@ -1,36 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
+ <meta charset="utf-8">
<title>jQuery UI Sortable - Connect lists with Tabs</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.sortable.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.droppable.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.tabs.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.sortable.js"></script>
+ <script src="../../ui/jquery.ui.droppable.js"></script>
+ <script src="../../ui/jquery.ui.tabs.js"></script>
+ <link rel="stylesheet" href="../demos.css">
+ <style>
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
</style>
- <script type="text/javascript">
+ <script>
$(function() {
- $("#sortable1, #sortable2").sortable().disableSelection();
+ $( "#sortable1, #sortable2" ).sortable().disableSelection();
- var $tabs = $("#tabs").tabs();
+ var $tabs = $( "#tabs" ).tabs();
- var $tab_items = $("ul:first li",$tabs).droppable({
+ var $tab_items = $( "ul:first li", $tabs ).droppable({
accept: ".connectedSortable li",
hoverClass: "ui-state-hover",
- drop: function(ev, ui) {
- var $item = $(this);
- var $list = $($item.find('a').attr('href')).find('.connectedSortable');
+ drop: function( event, ui ) {
+ var $item = $( this );
+ var $list = $( $item.find( "a" ).attr( "href" ) )
+ .find( ".connectedSortable" );
- ui.draggable.hide('slow', function() {
- $tabs.tabs('select', $tab_items.index($item));
- $(this).appendTo($list).show('slow');
+ ui.draggable.hide( "slow", function() {
+ $tabs.tabs( "select", $tab_items.index( $item ) );
+ $( this ).appendTo( $list ).show( "slow" );
});
}
});
@@ -67,12 +68,10 @@
</div><!-- End demo -->
-<div class="demo-description">
-<p>
- Sort items from one list into another and vice versa, by dropping the list item on the appropriate tab above.
-</p>
+<div class="demo-description">
+<p>Sort items from one list into another and vice versa, by dropping the list item on the appropriate tab above.</p>
</div><!-- End demo-description -->
</body>