mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Merge branch 'master' of https://github.com/thg2k/jquery-ui
This commit is contained in:
commit
52fd686f08
18
ui/jquery.ui.button.js
vendored
18
ui/jquery.ui.button.js
vendored
@ -183,21 +183,17 @@ $.widget( "ui.button", {
|
||||
},
|
||||
|
||||
_determineButtonType: function() {
|
||||
|
||||
|
||||
if ( this.element.is(":checkbox") ) {
|
||||
this.type = "checkbox";
|
||||
} else if ( this.element.is(":radio") ) {
|
||||
this.type = "radio";
|
||||
} else if ( this.element.is("input") ) {
|
||||
this.type = "input";
|
||||
} else {
|
||||
if ( this.element.is(":radio") ) {
|
||||
this.type = "radio";
|
||||
} else {
|
||||
if ( this.element.is("input") ) {
|
||||
this.type = "input";
|
||||
} else {
|
||||
this.type = "button";
|
||||
}
|
||||
}
|
||||
this.type = "button";
|
||||
}
|
||||
|
||||
|
||||
if ( this.type === "checkbox" || this.type === "radio" ) {
|
||||
// we don't search against the document in case the element
|
||||
// is disconnected from the DOM
|
||||
|
Loading…
Reference in New Issue
Block a user