demos: sortable - disableSelection on sortable elements

This commit is contained in:
Richard Worth 2009-03-02 12:10:59 +00:00
parent 1395a6047b
commit b8f1e92817
5 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("#sortable").sortable(); $("#sortable").sortable();
$("#sortable").disableSelection();
}); });
</script> </script>
</head> </head>

View File

@ -14,6 +14,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("#sortable").sortable(); $("#sortable").sortable();
$("#sortable").disableSelection();
}); });
</script> </script>
</head> </head>

View File

@ -21,6 +21,8 @@
connectWith: 'ul', connectWith: 'ul',
dropOnEmpty: false dropOnEmpty: false
}); });
$("#sortable1, #sortable2, #sortable3").disableSelection();
}); });
</script> </script>
</head> </head>

View File

@ -18,6 +18,7 @@
$("#sortable").sortable({ $("#sortable").sortable({
placeholder: 'ui-state-highlight' placeholder: 'ui-state-highlight'
}); });
$("#sortable").disableSelection();
}); });
</script> </script>
</head> </head>

View File

@ -33,6 +33,8 @@
$(this).toggleClass("ui-icon-minusthick"); $(this).toggleClass("ui-icon-minusthick");
$(this).parents(".portlet:first").find(".portlet-content").toggle(); $(this).parents(".portlet:first").find(".portlet-content").toggle();
}); });
$(".column").disableSelection();
}); });
</script> </script>
</head> </head>