Skip to content

Commit

Permalink
Fixing bug where 'copy-attributes-to-text-field' = false would preven…
Browse files Browse the repository at this point in the history
…t textfield from being inserted into DOM (credit: @dontangg)
  • Loading branch information
Jamie Appleseed committed Dec 11, 2011
1 parent 31993c2 commit d29cdcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.select-to-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ THE SOFTWARE.
attrs[key] = raw_attrs[i].nodeValue;
}
};
return $text_field.attr( attrs )
.val( $select_field.find('option:selected:first').text() )
.insertAfter( $select_field );
}
return $text_field.attr( attrs )
.val( $select_field.find('option:selected:first').text() )
.insertAfter( $select_field );
},
extract_options: function( $select_field ) {
var options = [];
Expand Down

0 comments on commit d29cdcd

Please sign in to comment.