$( ".positionable" ).css( "opacity", 0.5 );
- $( ":input" ).bind( "click keyup change", position );
+ $( "select, input" ).bind( "click keyup change", position );
$( "#parent" ).draggable({
drag: position
addClasses: true,
appendTo: "parent",
axis: false,
- cancel: ":input,option",
+ cancel: "input,textarea,button,select,option",
connectToSortable: false,
containment: false,
cursor: "auto",
});
});
-test("{ cancel: ':input,option' }, default", function() {
+test("{ cancel: 'input,textarea,button,select,option' }, default", function() {
$('<div id="draggable-option-cancel-default"><input type="text"></div>').appendTo('#main');
- el = $("#draggable-option-cancel-default").draggable({ cancel: ":input,option" });
+ el = $("#draggable-option-cancel-default").draggable({ cancel: "input,textarea,button,select,option" });
drag("#draggable-option-cancel-default", 50, 50);
moved(50, 50);
- el = $("#draggable-option-cancel-default").draggable({ cancel: ":input,option" });
- drag("#draggable-option-cancel-default :input", 50, 50);
+ el = $("#draggable-option-cancel-default").draggable({ cancel: "input,textarea,button,select,option" });
+ drag("#draggable-option-cancel-default input", 50, 50);
moved(0, 0);
el.draggable("destroy");
animateEasing: 'swing',
aspectRatio: false,
autoHide: false,
- cancel: ':input,option',
+ cancel: 'input,textarea,button,select,option',
containment: false,
delay: 0,
disabled: false,
defaults: {
appendTo: 'body',
autoRefresh: true,
- cancel: ':input,option',
+ cancel: 'input,textarea,button,select,option',
delay: 0,
disabled: false,
distance: 0,
TestHelpers.commonWidgetTests( "slider", {
defaults: {
animate: false,
- cancel: ':input,option',
+ cancel: 'input,textarea,button,select,option',
delay: 0,
disabled: false,
distance: 0,
defaults: {
appendTo: "parent",
axis: false,
- cancel: ":input,option",
+ cancel: "input,textarea,button,select,option",
connectWith: false,
containment: false,
cursor: "auto",
ok(false, "missing test - untested code is broken code.");
});
-test("{ cancel: ':input,button' }, default", function() {
+test("{ cancel: 'input,textarea,button,select,option' }, default", function() {
ok(false, "missing test - untested code is broken code.");
});
position();
});
- $( ":input" ).bind( "click keyup change", function() { position(); } );
+ $( "select, input" ).bind( "click keyup change", function() { position(); } );
position();
});
$.widget("ui.mouse", {
version: "@VERSION",
options: {
- cancel: ':input,option',
+ cancel: 'input,textarea,button,select,option',
distance: 1,
delay: 0
},