]> source.dussan.org Git - jquery-ui.git/commitdiff
Droppable: Style updates
authorAlexander Schmitz <arschmitz@gmail.com>
Fri, 21 Aug 2015 04:10:45 +0000 (00:10 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Fri, 21 Aug 2015 12:06:23 +0000 (08:06 -0400)
Ref #14246
Ref gh-1588

demos/droppable/photo-manager.html
tests/unit/droppable/common-deprecated.js
tests/unit/droppable/common.js
tests/unit/droppable/options.js
ui/widgets/droppable.js

index 2b324c1e96109312727374197ca25db0eeacf92b..d576e65247974c0307324f08e1d1b968b174dc86 100644 (file)
        <script src="../../external/requirejs/require.js"></script>
        <script src="../bootstrap.js" data-modules="dialog">
 
-               // there's the gallery and the trash
+               // There's the gallery and the trash
                var $gallery = $( "#gallery" ),
                        $trash = $( "#trash" );
 
-               // let the gallery items be draggable
+               // Let the gallery items be draggable
                $( "li", $gallery ).draggable({
                        cancel: "a.ui-icon", // clicking an icon won't initiate dragging
                        revert: "invalid", // when not dropped, the item will revert back to its initial position
@@ -35,7 +35,7 @@
                        cursor: "move"
                });
 
-               // let the trash be droppable, accepting the gallery items
+               // Let the trash be droppable, accepting the gallery items
                $trash.droppable({
                        accept: "#gallery > li",
                        classes: {
@@ -46,7 +46,7 @@
                        }
                });
 
-               // let the gallery be droppable as well, accepting items from the trash
+               // Let the gallery be droppable as well, accepting items from the trash
                $gallery.droppable({
                        accept: "#trash li",
                        classes: {
@@ -57,7 +57,7 @@
                        }
                });
 
-               // image deletion function
+               // Image deletion function
                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>";
                function deleteImage( $item ) {
                        $item.fadeOut(function() {
@@ -75,7 +75,7 @@
                        });
                }
 
-               // image recycle function
+               // Image recycle function
                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>";
                function recycleImage( $item ) {
                        $item.fadeOut(function() {
@@ -93,7 +93,7 @@
                        });
                }
 
-               // image preview function, demonstrating the ui.dialog used as a modal window
+               // Image preview function, demonstrating the ui.dialog used as a modal window
                function viewLargerImage( $link ) {
                        var src = $link.attr( "href" ),
                                title = $link.siblings( "img" ).attr( "alt" ),
                        }
                }
 
-               // resolve the icons behavior with event delegation
+               // Resolve the icons behavior with event delegation
                $( "ul.gallery > li" ).on( "click", function( event ) {
                        var $item = $( this ),
                                $target = $( event.target );
index e9fdc69cc8ff19e274bc16bad15142de8072587a..ecbc9b1a1b7f1ba3764a04409320aaf1361b4089 100644 (file)
@@ -15,7 +15,7 @@ common.testWidget( "droppable", {
                scope: "default",
                tolerance: "intersect",
 
-               // callbacks
+               // Callbacks
                activate: null,
                create: null,
                deactivate: null,
index d3bffc67b6a8e0f2e5135a820bc028406fe312b2..5d0e55d6f7ad17930c3a775bed497436504fded1 100644 (file)
@@ -13,7 +13,7 @@ common.testWidget( "droppable", {
                scope: "default",
                tolerance: "intersect",
 
-               // callbacks
+               // Callbacks
                activate: null,
                create: null,
                deactivate: null,
index 2fdf483d20a5c39ebf8f772d962be3f5409b991f..c2035ce8cc4319c59ad36ea4fbcdb90679f94cee 100644 (file)
@@ -114,7 +114,7 @@ test( "tolerance, intersect", function() {
                        height: 10,
                        position: "absolute",
 
-                       // http://bugs.jqueryui.com/ticket/6876
+                       // Http://bugs.jqueryui.com/ticket/6876
                        // Droppable: droppable region is offset by draggables margin
                        marginTop: 3,
                        marginLeft: 3
@@ -183,7 +183,7 @@ test( "tolerance, pointer", function() {
                });
        });
 
-       // http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
+       // Http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
        draggable.css({ top: 0, left: 0 }).draggable( "option", "axis", "x" );
        droppable.css({ top: 15, left: 15 });
 
index 3a8bd71094fbc916fcafa12c2e376f389f880e05..6ba8d8c809078ef8e1c0f58525d85e27dd610fd9 100644 (file)
@@ -41,7 +41,7 @@ $.widget( "ui.droppable", {
                scope: "default",
                tolerance: "intersect",
 
-               // callbacks
+               // Callbacks
                activate: null,
                deactivate: null,
                drop: null,
@@ -388,7 +388,7 @@ $.ui.ddmanager = {
                                }
                        }
 
-                       // we just moved into a greedy child
+                       // We just moved into a greedy child
                        if ( parentInstance && c === "isover" ) {
                                parentInstance.isover = false;
                                parentInstance.isout = true;
@@ -399,7 +399,7 @@ $.ui.ddmanager = {
                        this[c === "isout" ? "isover" : "isout"] = false;
                        this[c === "isover" ? "_over" : "_out"].call( this, event );
 
-                       // we just moved out of a greedy child
+                       // We just moved out of a greedy child
                        if ( parentInstance && c === "isout" ) {
                                parentInstance.isout = false;
                                parentInstance.isover = true;