mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
demos: sortable - disableSelection on sortable elements
This commit is contained in:
parent
1395a6047b
commit
b8f1e92817
@ -15,6 +15,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#sortable").sortable();
|
$("#sortable").sortable();
|
||||||
|
$("#sortable").disableSelection();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#sortable").sortable();
|
$("#sortable").sortable();
|
||||||
|
$("#sortable").disableSelection();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
connectWith: 'ul',
|
connectWith: 'ul',
|
||||||
dropOnEmpty: false
|
dropOnEmpty: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#sortable1, #sortable2, #sortable3").disableSelection();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
$("#sortable").sortable({
|
$("#sortable").sortable({
|
||||||
placeholder: 'ui-state-highlight'
|
placeholder: 'ui-state-highlight'
|
||||||
});
|
});
|
||||||
|
$("#sortable").disableSelection();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user