From 6fbd845b4a5059759ffec4d1de52c983213e9029 Mon Sep 17 00:00:00 2001 From: timcooper Date: Tue, 27 Mar 2012 12:09:02 +0200 Subject: [PATCH] Added IE7 support --- jquery.select-to-autocomplete.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.select-to-autocomplete.js b/jquery.select-to-autocomplete.js index 600e88e..e6a16d5 100755 --- a/jquery.select-to-autocomplete.js +++ b/jquery.select-to-autocomplete.js @@ -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 ); @@ -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;