Skip to content

Demos: Deal with missing disable-selection dependency #1603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demos/draggable/handle.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion demos/draggable/sortable.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/connect-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/display-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/empty-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
});
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/placeholder.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down
4 changes: 1 addition & 3 deletions demos/widget/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
_create: function() {
this.element
// add a class for theming
.addClass( "custom-colorize" )
// prevent double click to select text
.disableSelection();
.addClass( "custom-colorize" );

this.changer = $( "<button>", {
text: "change",
Expand Down