Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Update jquery.uniform.js
Browse files Browse the repository at this point in the history
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
Martin-Luther committed Sep 3, 2012
1 parent 2446d99 commit 802f815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.uniform.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 802f815

Please sign in to comment.