github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 248
    • 27
  • Source
  • Commits
  • Network (27)
  • Graphs
  • Tree: 3c31d72

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Sortable: Fixed a bug with over/out events and connected draggables.

Fixes #5346 - over and out events not triggered when draggable connected 
with single (non-nested) sortable.
Scott González (author)
Mon Mar 15 18:15:57 -0700 2010
commit  3c31d720ce6f745b9201a54aeee34de6c22c50ec
tree    289082c547af5e1c7ce9759ac4dc1e48aec86a94
parent  03adce34dd0d53af47e64091cb41bf1e438e836e
M ui/jquery.ui.sortable.js 7 ••••
Txt ui/jquery.ui.sortable.js
  • View file @ 3c31d72
... ...
@@ -700,8 +700,11 @@ $.widget("ui.sortable", $.ui.mouse, {
700 700
     // if no intersecting containers found, return 
701 701
     if(!innermostContainer) return; 
702 702
 
703  
-    // move the item into the container if it's not there already 
704  
-    if(this.currentContainer != this.containers[innermostIndex]) { 
  703
+    // move the item into the container if it's not there already
  704
+    if(this.containers.length === 1) {
  705
+      this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
  706
+      this.containers[innermostIndex].containerCache.over = 1;
  707
+    } else if(this.currentContainer != this.containers[innermostIndex]) { 
705 708
 
706 709
       //When entering a new container, we will find the item with the least distance and append our item near it 
707 710
       var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[innermostIndex].floating ? 'left' : 'top']; 

0 notes on commit 3c31d72

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server