Fixes #5134 - Events not being triggered for drag and drop.
(function($) {
$.widget("ui.draggable", $.ui.mouse, {
+ widgetEventPrefix: "drag",
options: {
addClasses: true,
appendTo: "parent",
});
$.extend($.ui.draggable, {
- version: "@VERSION",
- eventPrefix: "drag"
+ version: "@VERSION"
});
$.ui.plugin.add("draggable", "connectToSortable", {
(function($) {
$.widget("ui.droppable", {
+ widgetEventPrefix: "drop",
options: {
accept: '*',
activeClass: false,
});
$.extend($.ui.droppable, {
- version: "@VERSION",
- eventPrefix: 'drop'
+ version: "@VERSION"
});
$.ui.intersect = function(draggable, droppable, toleranceMode) {
(function($) {
$.widget("ui.resizable", $.ui.mouse, {
+ widgetEventPrefix: "resize",
options: {
alsoResize: false,
animate: false,
});
$.extend($.ui.resizable, {
- version: "@VERSION",
- eventPrefix: "resize"
+ version: "@VERSION"
});
/*
var numPages = 5;
$.widget("ui.slider", $.ui.mouse, {
+ widgetEventPrefix: "slide"
options: {
animate: false,
distance: 0,
});
$.extend($.ui.slider, {
- version: "@VERSION",
- eventPrefix: "slide"
+ version: "@VERSION"
});
})(jQuery);
(function($) {
$.widget("ui.sortable", $.ui.mouse, {
+ widgetEventPrefix: "sort",
options: {
appendTo: "parent",
axis: false,
});
$.extend($.ui.sortable, {
- version: "@VERSION",
- eventPrefix: "sort"
+ version: "@VERSION"
});
})(jQuery);