Skip to content
Permalink
Browse files

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

Fixes #5134 - Events not being triggered for drag and drop.
  • Loading branch information
scottgonzalez committed Feb 5, 2010
1 parent 0b976c4 commit 9e02f801765abb57f426a8a3116b6bcaa2698126
Showing with 10 additions and 10 deletions.
  1. +2 −2 ui/jquery.ui.draggable.js
  2. +2 −2 ui/jquery.ui.droppable.js
  3. +2 −2 ui/jquery.ui.resizable.js
  4. +2 −2 ui/jquery.ui.slider.js
  5. +2 −2 ui/jquery.ui.sortable.js
@@ -15,6 +15,7 @@
(function($) {

$.widget("ui.draggable", $.ui.mouse, {
widgetEventPrefix: "drag",
options: {
addClasses: true,
appendTo: "parent",
@@ -467,8 +468,7 @@ $.widget("ui.draggable", $.ui.mouse, {
});

$.extend($.ui.draggable, {
version: "@VERSION",
eventPrefix: "drag"
version: "@VERSION"
});

$.ui.plugin.add("draggable", "connectToSortable", {
@@ -16,6 +16,7 @@
(function($) {

$.widget("ui.droppable", {
widgetEventPrefix: "drop",
options: {
accept: '*',
activeClass: false,
@@ -146,8 +147,7 @@ $.widget("ui.droppable", {
});

$.extend($.ui.droppable, {
version: "@VERSION",
eventPrefix: 'drop'
version: "@VERSION"
});

$.ui.intersect = function(draggable, droppable, toleranceMode) {
@@ -15,6 +15,7 @@
(function($) {

$.widget("ui.resizable", $.ui.mouse, {
widgetEventPrefix: "resize",
options: {
alsoResize: false,
animate: false,
@@ -518,8 +519,7 @@ $.widget("ui.resizable", $.ui.mouse, {
});

$.extend($.ui.resizable, {
version: "@VERSION",
eventPrefix: "resize"
version: "@VERSION"
});

/*
@@ -20,6 +20,7 @@
var numPages = 5;

$.widget("ui.slider", $.ui.mouse, {
widgetEventPrefix: "slide"
options: {
animate: false,
distance: 0,
@@ -607,8 +608,7 @@ $.widget("ui.slider", $.ui.mouse, {
});

$.extend($.ui.slider, {
version: "@VERSION",
eventPrefix: "slide"
version: "@VERSION"
});

})(jQuery);
@@ -15,6 +15,7 @@
(function($) {

$.widget("ui.sortable", $.ui.mouse, {
widgetEventPrefix: "sort",
options: {
appendTo: "parent",
axis: false,
@@ -1045,8 +1046,7 @@ $.widget("ui.sortable", $.ui.mouse, {
});

$.extend($.ui.sortable, {
version: "@VERSION",
eventPrefix: "sort"
version: "@VERSION"
});

})(jQuery);

0 comments on commit 9e02f80

Please sign in to comment.
You can’t perform that action at this time.