Permalink
Browse files

Demos: Add missing disable-selection dependency in sortable-ish demos

Ref 4916487
Ref #9647
  • Loading branch information...
1 parent ce50178 commit cfe91fd9e2852e86d7f9d9dc73aa187bd7535174 @jzaefferer jzaefferer committed Sep 21, 2015
@@ -10,7 +10,7 @@
#draggable p { cursor: move; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#draggable" ).draggable({ handle: "p" });
$( "#draggable2" ).draggable({ cancel: "p.ui-widget-header" });
$( "div, p" ).disableSelection();
@@ -10,7 +10,7 @@
li { margin: 5px; padding: 5px; width: 150px; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js" data-modules="sortable">
+ <script src="../bootstrap.js" data-modules="sortable disable-selection">
$( "#sortable" ).sortable({
revert: true
});
@@ -24,7 +24,7 @@
}
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".connectedSortable"
}).disableSelection();
@@ -11,7 +11,7 @@
#sortable li span { position: absolute; margin-left: -1.3em; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
</script>
@@ -10,7 +10,7 @@
#sortable li { margin: 3px 3px 3px 0; padding: 1px; float: left; width: 100px; height: 90px; font-size: 4em; text-align: center; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
</script>
@@ -10,7 +10,7 @@
#sortable1 li, #sortable2 li, #sortable3 li { margin: 5px; padding: 5px; font-size: 1.2em; width: 120px; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "ul.droptrue" ).sortable({
connectWith: "ul"
});
@@ -10,7 +10,7 @@
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 3px; width: 90%; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#sortable1" ).sortable({
items: "li:not(.ui-state-disabled)"
});
@@ -12,7 +12,7 @@
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
</style>
<script src="../../external/requirejs/require.js"></script>
- <script src="../bootstrap.js">
+ <script src="../bootstrap.js" data-modules="disable-selection">
$( "#sortable" ).sortable({
placeholder: "ui-state-highlight"
});

0 comments on commit cfe91fd

Please sign in to comment.