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

Fixes #5134 - Events not being triggered for drag and drop.
This commit is contained in:
Scott González 2010-02-05 03:03:50 +00:00
parent 0b976c4616
commit 9e02f80176
5 changed files with 10 additions and 10 deletions

View File

@ -15,6 +15,7 @@
(function($) { (function($) {
$.widget("ui.draggable", $.ui.mouse, { $.widget("ui.draggable", $.ui.mouse, {
widgetEventPrefix: "drag",
options: { options: {
addClasses: true, addClasses: true,
appendTo: "parent", appendTo: "parent",
@ -467,8 +468,7 @@ $.widget("ui.draggable", $.ui.mouse, {
}); });
$.extend($.ui.draggable, { $.extend($.ui.draggable, {
version: "@VERSION", version: "@VERSION"
eventPrefix: "drag"
}); });
$.ui.plugin.add("draggable", "connectToSortable", { $.ui.plugin.add("draggable", "connectToSortable", {

View File

@ -16,6 +16,7 @@
(function($) { (function($) {
$.widget("ui.droppable", { $.widget("ui.droppable", {
widgetEventPrefix: "drop",
options: { options: {
accept: '*', accept: '*',
activeClass: false, activeClass: false,
@ -146,8 +147,7 @@ $.widget("ui.droppable", {
}); });
$.extend($.ui.droppable, { $.extend($.ui.droppable, {
version: "@VERSION", version: "@VERSION"
eventPrefix: 'drop'
}); });
$.ui.intersect = function(draggable, droppable, toleranceMode) { $.ui.intersect = function(draggable, droppable, toleranceMode) {

View File

@ -15,6 +15,7 @@
(function($) { (function($) {
$.widget("ui.resizable", $.ui.mouse, { $.widget("ui.resizable", $.ui.mouse, {
widgetEventPrefix: "resize",
options: { options: {
alsoResize: false, alsoResize: false,
animate: false, animate: false,
@ -518,8 +519,7 @@ $.widget("ui.resizable", $.ui.mouse, {
}); });
$.extend($.ui.resizable, { $.extend($.ui.resizable, {
version: "@VERSION", version: "@VERSION"
eventPrefix: "resize"
}); });
/* /*

View File

@ -20,6 +20,7 @@
var numPages = 5; var numPages = 5;
$.widget("ui.slider", $.ui.mouse, { $.widget("ui.slider", $.ui.mouse, {
widgetEventPrefix: "slide"
options: { options: {
animate: false, animate: false,
distance: 0, distance: 0,
@ -607,8 +608,7 @@ $.widget("ui.slider", $.ui.mouse, {
}); });
$.extend($.ui.slider, { $.extend($.ui.slider, {
version: "@VERSION", version: "@VERSION"
eventPrefix: "slide"
}); });
})(jQuery); })(jQuery);

View File

@ -15,6 +15,7 @@
(function($) { (function($) {
$.widget("ui.sortable", $.ui.mouse, { $.widget("ui.sortable", $.ui.mouse, {
widgetEventPrefix: "sort",
options: { options: {
appendTo: "parent", appendTo: "parent",
axis: false, axis: false,
@ -1045,8 +1046,7 @@ $.widget("ui.sortable", $.ui.mouse, {
}); });
$.extend($.ui.sortable, { $.extend($.ui.sortable, {
version: "@VERSION", version: "@VERSION"
eventPrefix: "sort"
}); });
})(jQuery); })(jQuery);