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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 553
    • 89
  • Source
  • Commits
  • Network (89)
  • Graphs
  • Tree: e780583

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Selectable: modified _mouseStart function to unselect event.target if the
Ctrl/Cmd key is pressed, and target is selected. Fixed #4293 - Ctrl + Click on
selected list item does not deselect 
jaysoo (author)
Wed May 12 08:31:16 -0700 2010
rdworth (committer)
Wed May 12 08:49:25 -0700 2010
commit  e780583694f69513e4f3
tree    46f219634f172831a3c5
parent  5b4c04acb5cff032afae
M ui/jquery.ui.selectable.js 15 ••••
Txt ui/jquery.ui.selectable.js
  • View file @ e780583
... ...
@@ -1,3 +1,4 @@
  1
+
1 2
 /*
2 3
  * jQuery UI Selectable @VERSION
3 4
  *
... ...
@@ -128,10 +129,16 @@ $.widget("ui.selectable", $.ui.mouse, {
128 129
         selectee.unselecting = !doSelect;
129 130
         selectee.selecting = doSelect;
130 131
         selectee.selected = doSelect;
131  
-        // selectable UNSELECTING callback
132  
-        self._trigger(doSelect ? "selecting" : "unselecting", event, {
133  
-          selecting: selectee.element
134  
-        });
  132
+        // selectable (UN)SELECTING callback
  133
+        if (doSelect) {
  134
+          self._trigger("selecting", event, {
  135
+            selecting: selectee.element
  136
+          });
  137
+        } else {
  138
+          self._trigger("unselecting", event, {
  139
+            unselecting: selectee.element
  140
+          });
  141
+        }
135 142
         return false;
136 143
       }
137 144
     });

0 notes on commit e780583

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