Skip to content
Permalink
Browse files

resizable, selectable, sortable: changed cancel default to ':input' i…

…nstead of (redundant) ':input,button'
  • Loading branch information
rdworth committed Jun 26, 2008
1 parent 505d88e commit e42b0f6b8bf910885b7b84037b312c5c93b47a26
Showing with 4 additions and 4 deletions.
  1. +1 −1 tests/sortable.js
  2. +1 −1 ui/ui.resizable.js
  3. +1 −1 ui/ui.selectable.js
  4. +1 −1 ui/ui.sortable.js
@@ -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,

0 comments on commit e42b0f6

Please sign in to comment.
You can’t perform that action at this time.