This commit is contained in:
Richard Worth 2010-03-17 12:56:15 +00:00
parent a202248780
commit 08a750a58f

View File

@ -184,7 +184,7 @@ $.widget( "ui.button", {
if ( this.element.is(":radio") ) { if ( this.element.is(":radio") ) {
this.type = "radio"; this.type = "radio";
} else { } else {
if (this.element.is("input") ) { if ( this.element.is("input") ) {
this.type = "input"; this.type = "input";
} else { } else {
this.type = "button"; this.type = "button";
@ -197,7 +197,7 @@ $.widget( "ui.button", {
// is disconnected from the DOM // is disconnected from the DOM
this.buttonElement = this.element.parents().last() this.buttonElement = this.element.parents().last()
.find( "[for=" + this.element.attr("id") + "]" ); .find( "[for=" + this.element.attr("id") + "]" );
this.element.addClass('ui-helper-hidden-accessible'); this.element.addClass( "ui-helper-hidden-accessible" );
var checked = this.element.is( ":checked" ); var checked = this.element.is( ":checked" );
if ( checked ) { if ( checked ) {