Browse files

Merge pull request #33 from timcooper/master

Add IE7 Support
  • Loading branch information...
2 parents 79e4d21 + 6fbd845 commit 0b21ac9623c2e4440610a188354df2bbe468010e @JamieAppleseed committed Apr 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.select-to-autocomplete.js
View
6 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;

0 comments on commit 0b21ac9

Please sign in to comment.