Skip to content

Commit

Permalink
Added IE7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
timcooper committed Mar 27, 2012
1 parent 3f02e97 commit 6fbd845
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 @@ -52,8 +52,8 @@ THE SOFTWARE.
for (var i=0; i < raw_attrs.length; i++) {
var key = raw_attrs[i].nodeName;
var value = raw_attrs[i].nodeValue;
if ( key !== 'name' && key !== 'id' ) {
attrs[key] = raw_attrs[i].nodeValue;
if ( key !== 'name' && key !== 'id' && typeof context.$select_field.attr(key) !== 'undefined' ) {
attrs[key] = value;
}
};
$text_field.attr( attrs );
Expand Down Expand Up @@ -133,7 +133,7 @@ THE SOFTWARE.
var public_methods = {
init: function( customizations ) {

if ( $.browser.msie && parseInt($.browser.version, 10) <= 7) {
if ( $.browser.msie && parseInt($.browser.version, 10) <= 6) {

return this;

Expand Down

0 comments on commit 6fbd845

Please sign in to comment.