Permalink
Browse files

Textinput: Fixed the enable method. Fixes #5447.

  • Loading branch information...
jaspermdegroot committed Jan 21, 2013
1 parent 467823c commit d0ef98e332e1a7abb29c49ae6078ab582ebce668
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/forms/textinput.js
@@ -169,9 +169,9 @@ $.widget( "mobile.textinput", $.mobile.widget, {
var $el,
isSearch = this.element.is( "[type='search'], :jqmData(type='search')" ),
inputNeedsWrap = this.element.is( "input" ) && !this.element.is( ":jqmData(type='range')" ),
parentNeedsDisabled = this.element.attr( "disabled", true ) && ( inputNeedsWrap || isSearch );
parentNeedsEnabled = this.element.attr( "disabled", false ) && ( inputNeedsWrap || isSearch );
if ( parentNeedsDisabled ) {
if ( parentNeedsEnabled ) {
$el = this.element.parent();
} else {
$el = this.element;

0 comments on commit d0ef98e

Please sign in to comment.