resizable, selectable, sortable: changed cancel default to ':input' instead of (redundant) ':input,button'

This commit is contained in:
Richard Worth 2008-06-26 10:23:38 +00:00
parent 505d88ec28
commit e42b0f6b8b
4 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ test("defaults", function() {
equals(el.data("scroll.sortable"), true, "scroll"); equals(el.data("scroll.sortable"), true, "scroll");
equals(el.data("scrollSensitivity.sortable"), 20, "scrollSensitivity"); equals(el.data("scrollSensitivity.sortable"), 20, "scrollSensitivity");
equals(el.data("scrollSpeed.sortable"), 20, "scrollSpeed"); 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("items.sortable"), "> *", "items");
equals(el.data("zIndex.sortable"), 1000, "zIndex"); equals(el.data("zIndex.sortable"), 1000, "zIndex");
equals(el.data("dropOnEmpty.sortable"), true, "dropOnEmpty"); equals(el.data("dropOnEmpty.sortable"), true, "dropOnEmpty");

View File

@ -503,7 +503,7 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
$.extend($.ui.resizable, { $.extend($.ui.resizable, {
defaults: { defaults: {
cancel: ":input,button", cancel: ":input",
distance: 1, distance: 1,
delay: 0, delay: 0,
preventDefault: true, preventDefault: true,

View File

@ -253,7 +253,7 @@ $.extend($.ui.selectable, {
defaults: { defaults: {
distance: 1, distance: 1,
delay: 0, delay: 0,
cancel: ":input,button", cancel: ":input",
appendTo: 'body', appendTo: 'body',
autoRefresh: true, autoRefresh: true,
filter: '*', filter: '*',

View File

@ -624,7 +624,7 @@ $.extend($.ui.sortable, {
scroll: true, scroll: true,
scrollSensitivity: 20, scrollSensitivity: 20,
scrollSpeed: 20, scrollSpeed: 20,
cancel: ":input,button", cancel: ":input",
items: '> *', items: '> *',
zIndex: 1000, zIndex: 1000,
dropOnEmpty: true, dropOnEmpty: true,