Permalink
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...
1 parent 2446d99 commit 802f815469fb514704ed3abe479d5316e1851df7 @Martin-Luther Martin-Luther committed Sep 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 jquery.uniform.js
View
@@ -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() {

0 comments on commit 802f815

Please sign in to comment.