Skip to content
This repository
Browse code

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 Etouman Martin-Luther authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 jquery.uniform.js
4 jquery.uniform.js
@@ -199,6 +199,10 @@ Enjoy!
199 199 divTag.removeClass(options.activeClass);
200 200 },
201 201 "click.uniform touchend.uniform": function(){
  202 + //Fix For ie8 and ie7
  203 + if(spanTag.html() != elem.find(":selected").html()){
  204 + spanTag.html(elem.find(":selected").html());
  205 + }
202 206 divTag.removeClass(options.activeClass);
203 207 },
204 208 "mouseenter.uniform": function() {

0 comments on commit 802f815

Please sign in to comment.
Something went wrong with that request. Please try again.