};
$.ui.mouse.defaults = {
- cancel: null,
+ cancel: ':input,option',
distance: 1,
delay: 0
};
$.extend($.ui.draggable, {
version: "@VERSION",
eventPrefix: "drag",
- defaults: {
+ defaults: $.extend({}, $.ui.mouse.defaults, {
addClasses: true,
appendTo: "parent",
axis: false,
- cancel: ":input,option",
connectToSortable: false,
containment: false,
cursor: "auto",
cursorAt: false,
- delay: 0,
- distance: 1,
grid: false,
handle: false,
helper: "original",
snapTolerance: 20,
stack: false,
zIndex: false
- }
+ })
});
$.ui.plugin.add("draggable", "connectToSortable", {
$.extend($.ui.resizable, {
version: "@VERSION",
eventPrefix: "resize",
- defaults: {
+ defaults: $.extend({}, $.ui.mouse.defaults, {
alsoResize: false,
animate: false,
animateDuration: "slow",
animateEasing: "swing",
aspectRatio: false,
autoHide: false,
- cancel: ":input,option",
containment: false,
- delay: 0,
- distance: 1,
ghost: false,
grid: false,
handles: "e,s,se",
minHeight: 10,
minWidth: 10,
zIndex: 1000
- }
+ })
});
/*
$.extend($.ui.selectable, {
version: "@VERSION",
- defaults: {
+ defaults: $.extend({}, $.ui.mouse.defaults, {
appendTo: 'body',
autoRefresh: true,
- cancel: ":input,option",
- delay: 0,
distance: 0,
filter: '*',
tolerance: 'touch'
- }
+ })
});
})(jQuery);
$.extend($.ui.slider, {
version: "@VERSION",
eventPrefix: "slide",
- defaults: {
+ defaults: $.extend({}, $.ui.mouse.defaults, {
animate: false,
- delay: 0,
distance: 0,
max: 100,
min: 0,
step: 1,
value: 0,
values: null
- }
+ })
});
})(jQuery);
$.extend($.ui.sortable, {
version: "@VERSION",
eventPrefix: "sort",
- defaults: {
+ defaults: $.extend({}, $.ui.mouse.defaults, {
appendTo: "parent",
axis: false,
- cancel: ":input,option",
connectWith: false,
containment: false,
cursor: 'auto',
cursorAt: false,
- delay: 0,
- distance: 1,
dropOnEmpty: true,
forcePlaceholderSize: false,
forceHelperSize: false,
scope: "default",
tolerance: "intersect",
zIndex: 1000
- }
+ })
});
})(jQuery);