mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
0b976c4616
commit
9e02f80176
4
ui/jquery.ui.draggable.js
vendored
4
ui/jquery.ui.draggable.js
vendored
@ -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", {
|
||||
|
4
ui/jquery.ui.droppable.js
vendored
4
ui/jquery.ui.droppable.js
vendored
@ -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) {
|
||||
|
4
ui/jquery.ui.resizable.js
vendored
4
ui/jquery.ui.resizable.js
vendored
@ -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"
|
||||
});
|
||||
|
||||
/*
|
||||
|
4
ui/jquery.ui.slider.js
vendored
4
ui/jquery.ui.slider.js
vendored
@ -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);
|
||||
|
4
ui/jquery.ui.sortable.js
vendored
4
ui/jquery.ui.sortable.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user