mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
resizable, selectable, sortable: changed cancel default to ':input' instead of (redundant) ':input,button'
This commit is contained in:
parent
505d88ec28
commit
e42b0f6b8b
@ -117,7 +117,7 @@ test("defaults", function() {
|
||||
equals(el.data("scroll.sortable"), true, "scroll");
|
||||
equals(el.data("scrollSensitivity.sortable"), 20, "scrollSensitivity");
|
||||
equals(el.data("scrollSpeed.sortable"), 20, "scrollSpeed");
|
||||
equals(el.data("cancel.sortable"), ":input,button", "cancel");
|
||||
equals(el.data("cancel.sortable"), ":input", "cancel");
|
||||
equals(el.data("items.sortable"), "> *", "items");
|
||||
equals(el.data("zIndex.sortable"), 1000, "zIndex");
|
||||
equals(el.data("dropOnEmpty.sortable"), true, "dropOnEmpty");
|
||||
|
@ -503,7 +503,7 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
|
||||
|
||||
$.extend($.ui.resizable, {
|
||||
defaults: {
|
||||
cancel: ":input,button",
|
||||
cancel: ":input",
|
||||
distance: 1,
|
||||
delay: 0,
|
||||
preventDefault: true,
|
||||
|
@ -253,7 +253,7 @@ $.extend($.ui.selectable, {
|
||||
defaults: {
|
||||
distance: 1,
|
||||
delay: 0,
|
||||
cancel: ":input,button",
|
||||
cancel: ":input",
|
||||
appendTo: 'body',
|
||||
autoRefresh: true,
|
||||
filter: '*',
|
||||
|
@ -624,7 +624,7 @@ $.extend($.ui.sortable, {
|
||||
scroll: true,
|
||||
scrollSensitivity: 20,
|
||||
scrollSpeed: 20,
|
||||
cancel: ":input,button",
|
||||
cancel: ":input",
|
||||
items: '> *',
|
||||
zIndex: 1000,
|
||||
dropOnEmpty: true,
|
||||
|
Loading…
Reference in New Issue
Block a user