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($) {
|
(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", {
|
||||||
|
4
ui/jquery.ui.droppable.js
vendored
4
ui/jquery.ui.droppable.js
vendored
@ -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) {
|
||||||
|
4
ui/jquery.ui.resizable.js
vendored
4
ui/jquery.ui.resizable.js
vendored
@ -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"
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
4
ui/jquery.ui.slider.js
vendored
4
ui/jquery.ui.slider.js
vendored
@ -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);
|
||||||
|
4
ui/jquery.ui.sortable.js
vendored
4
ui/jquery.ui.sortable.js
vendored
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user