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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 717
    • 146
  • Source
  • Commits
  • Network (146)
  • Graphs
  • Tree: 9e02f80

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (19)
    • 1.9m2
    • 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

Fixed event prefix in all plugins that don't use the default prefix.

Fixes #5134 - Events not being triggered for drag and drop.
scottgonzalez (author)
Thu Feb 04 19:03:50 -0800 2010
commit  9e02f801765abb57f426
tree    e5e7e076eb701dfc3a1d
parent  0b976c4616bfe9c5a4fb
M ui/jquery.ui.draggable.js 4 ••••
M ui/jquery.ui.droppable.js 4 ••••
M ui/jquery.ui.resizable.js 4 ••••
M ui/jquery.ui.slider.js 4 ••••
M ui/jquery.ui.sortable.js 4 ••••
Txt ui/jquery.ui.draggable.js
  • View file @ 9e02f80
... ...
@@ -15,6 +15,7 @@
15 15
 (function($) {
16 16
 
17 17
 $.widget("ui.draggable", $.ui.mouse, {
  18
+  widgetEventPrefix: "drag",
18 19
   options: {
19 20
     addClasses: true,
20 21
     appendTo: "parent",
... ...
@@ -467,8 +468,7 @@ $.widget("ui.draggable", $.ui.mouse, {
467 468
 });
468 469
 
469 470
 $.extend($.ui.draggable, {
470  
-  version: "@VERSION",
471  
-  eventPrefix: "drag"
  471
+  version: "@VERSION"
472 472
 });
473 473
 
474 474
 $.ui.plugin.add("draggable", "connectToSortable", {
Txt ui/jquery.ui.droppable.js
  • View file @ 9e02f80
... ...
@@ -16,6 +16,7 @@
16 16
 (function($) {
17 17
 
18 18
 $.widget("ui.droppable", {
  19
+  widgetEventPrefix: "drop",
19 20
   options: {
20 21
     accept: '*',
21 22
     activeClass: false,
... ...
@@ -146,8 +147,7 @@ $.widget("ui.droppable", {
146 147
 });
147 148
 
148 149
 $.extend($.ui.droppable, {
149  
-  version: "@VERSION",
150  
-  eventPrefix: 'drop'
  150
+  version: "@VERSION"
151 151
 });
152 152
 
153 153
 $.ui.intersect = function(draggable, droppable, toleranceMode) {
Txt ui/jquery.ui.resizable.js
  • View file @ 9e02f80
... ...
@@ -15,6 +15,7 @@
15 15
 (function($) {
16 16
 
17 17
 $.widget("ui.resizable", $.ui.mouse, {
  18
+  widgetEventPrefix: "resize",
18 19
   options: {
19 20
     alsoResize: false,
20 21
     animate: false,
... ...
@@ -518,8 +519,7 @@ $.widget("ui.resizable", $.ui.mouse, {
518 519
 });
519 520
 
520 521
 $.extend($.ui.resizable, {
521  
-  version: "@VERSION",
522  
-  eventPrefix: "resize"
  522
+  version: "@VERSION"
523 523
 });
524 524
 
525 525
 /*
Txt ui/jquery.ui.slider.js
  • View file @ 9e02f80
... ...
@@ -20,6 +20,7 @@
20 20
 var numPages = 5;
21 21
 
22 22
 $.widget("ui.slider", $.ui.mouse, {
  23
+  widgetEventPrefix: "slide"
23 24
   options: {
24 25
     animate: false,
25 26
     distance: 0,
... ...
@@ -607,8 +608,7 @@ $.widget("ui.slider", $.ui.mouse, {
607 608
 });
608 609
 
609 610
 $.extend($.ui.slider, {
610  
-  version: "@VERSION",
611  
-  eventPrefix: "slide"
  611
+  version: "@VERSION"
612 612
 });
613 613
 
614 614
 })(jQuery);
Txt ui/jquery.ui.sortable.js
  • View file @ 9e02f80
... ...
@@ -15,6 +15,7 @@
15 15
 (function($) {
16 16
 
17 17
 $.widget("ui.sortable", $.ui.mouse, {
  18
+  widgetEventPrefix: "sort",
18 19
   options: {
19 20
     appendTo: "parent",
20 21
     axis: false,
... ...
@@ -1045,8 +1046,7 @@ $.widget("ui.sortable", $.ui.mouse, {
1045 1046
 });
1046 1047
 
1047 1048
 $.extend($.ui.sortable, {
1048  
-  version: "@VERSION",
1049  
-  eventPrefix: "sort"
  1049
+  version: "@VERSION"
1050 1050
 });
1051 1051
 
1052 1052
 })(jQuery);

0 notes on commit 9e02f80

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