Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update jquery.uniform.js

I have noticed that in some cases, while selecting with select boxes, ie7 and ie8 wouldn't take the value. 
So by testing on the click event, we can make one last check on the selected value and compare it with the "span". 
  • Loading branch information...
commit 802f815469fb514704ed3abe479d5316e1851df7 1 parent 2446d99
@Martin-Luther Martin-Luther authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 jquery.uniform.js
View
4 jquery.uniform.js
@@ -199,6 +199,10 @@ Enjoy!
divTag.removeClass(options.activeClass);
},
"click.uniform touchend.uniform": function(){
+ //Fix For ie8 and ie7
+ if(spanTag.html() != elem.find(":selected").html()){
+ spanTag.html(elem.find(":selected").html());
+ }
divTag.removeClass(options.activeClass);
},
"mouseenter.uniform": function() {
Please sign in to comment.
Something went wrong with that request. Please try again.