Skip to content

Commit f43311d

Browse files
committed
Droppable: Style updates
Ref #14246 Ref gh-1588
1 parent 3b99bf4 commit f43311d

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

demos/droppable/photo-manager.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
<script src="../../external/requirejs/require.js"></script>
2323
<script src="../bootstrap.js" data-modules="dialog">
2424

25-
// there's the gallery and the trash
25+
// There's the gallery and the trash
2626
var $gallery = $( "#gallery" ),
2727
$trash = $( "#trash" );
2828

29-
// let the gallery items be draggable
29+
// Let the gallery items be draggable
3030
$( "li", $gallery ).draggable({
3131
cancel: "a.ui-icon", // clicking an icon won't initiate dragging
3232
revert: "invalid", // when not dropped, the item will revert back to its initial position
@@ -35,7 +35,7 @@
3535
cursor: "move"
3636
});
3737

38-
// let the trash be droppable, accepting the gallery items
38+
// Let the trash be droppable, accepting the gallery items
3939
$trash.droppable({
4040
accept: "#gallery > li",
4141
classes: {
@@ -46,7 +46,7 @@
4646
}
4747
});
4848

49-
// let the gallery be droppable as well, accepting items from the trash
49+
// Let the gallery be droppable as well, accepting items from the trash
5050
$gallery.droppable({
5151
accept: "#trash li",
5252
classes: {
@@ -57,7 +57,7 @@
5757
}
5858
});
5959

60-
// image deletion function
60+
// Image deletion function
6161
var recycle_icon = "<a href='link/to/recycle/script/when/we/have/js/off' title='Recycle this image' class='ui-icon ui-icon-refresh'>Recycle image</a>";
6262
function deleteImage( $item ) {
6363
$item.fadeOut(function() {
@@ -75,7 +75,7 @@
7575
});
7676
}
7777

78-
// image recycle function
78+
// Image recycle function
7979
var trash_icon = "<a href='link/to/trash/script/when/we/have/js/off' title='Delete this image' class='ui-icon ui-icon-trash'>Delete image</a>";
8080
function recycleImage( $item ) {
8181
$item.fadeOut(function() {
@@ -93,7 +93,7 @@
9393
});
9494
}
9595

96-
// image preview function, demonstrating the ui.dialog used as a modal window
96+
// Image preview function, demonstrating the ui.dialog used as a modal window
9797
function viewLargerImage( $link ) {
9898
var src = $link.attr( "href" ),
9999
title = $link.siblings( "img" ).attr( "alt" ),
@@ -114,7 +114,7 @@
114114
}
115115
}
116116

117-
// resolve the icons behavior with event delegation
117+
// Resolve the icons behavior with event delegation
118118
$( "ul.gallery > li" ).on( "click", function( event ) {
119119
var $item = $( this ),
120120
$target = $( event.target );

tests/unit/droppable/common-deprecated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ common.testWidget( "droppable", {
1515
scope: "default",
1616
tolerance: "intersect",
1717

18-
// callbacks
18+
// Callbacks
1919
activate: null,
2020
create: null,
2121
deactivate: null,

tests/unit/droppable/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ common.testWidget( "droppable", {
1313
scope: "default",
1414
tolerance: "intersect",
1515

16-
// callbacks
16+
// Callbacks
1717
activate: null,
1818
create: null,
1919
deactivate: null,

tests/unit/droppable/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ test( "tolerance, intersect", function() {
114114
height: 10,
115115
position: "absolute",
116116

117-
// http://bugs.jqueryui.com/ticket/6876
117+
// Http://bugs.jqueryui.com/ticket/6876
118118
// Droppable: droppable region is offset by draggables margin
119119
marginTop: 3,
120120
marginLeft: 3
@@ -183,7 +183,7 @@ test( "tolerance, pointer", function() {
183183
});
184184
});
185185

186-
// http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
186+
// Http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
187187
draggable.css({ top: 0, left: 0 }).draggable( "option", "axis", "x" );
188188
droppable.css({ top: 15, left: 15 });
189189

ui/widgets/droppable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $.widget( "ui.droppable", {
4141
scope: "default",
4242
tolerance: "intersect",
4343

44-
// callbacks
44+
// Callbacks
4545
activate: null,
4646
deactivate: null,
4747
drop: null,
@@ -388,7 +388,7 @@ $.ui.ddmanager = {
388388
}
389389
}
390390

391-
// we just moved into a greedy child
391+
// We just moved into a greedy child
392392
if ( parentInstance && c === "isover" ) {
393393
parentInstance.isover = false;
394394
parentInstance.isout = true;
@@ -399,7 +399,7 @@ $.ui.ddmanager = {
399399
this[c === "isout" ? "isover" : "isout"] = false;
400400
this[c === "isover" ? "_over" : "_out"].call( this, event );
401401

402-
// we just moved out of a greedy child
402+
// We just moved out of a greedy child
403403
if ( parentInstance && c === "isout" ) {
404404
parentInstance.isout = false;
405405
parentInstance.isover = true;

0 commit comments

Comments
 (0)