Skip to content

Commit

Permalink
Merge pull request #108 from wastaz/master
Browse files Browse the repository at this point in the history
Fixed tooltips not showing in browsers not supporting css animations
  • Loading branch information
louisameline committed Jan 10, 2014
2 parents 6b8630c + 4ab925b commit 135f4d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/jquery.tooltipster.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
pointerEvents = self.options.interactive ? 'pointer-events: auto;' : '';

// build the base of our tooltip
self.$tooltip = $('<div class="tooltipster-base '+ animation +' '+ self.options.theme +'" style="'+ fixedWidth +' '+ maxWidth +' '+ pointerEvents +' '+ animationSpeed +'"><div class="tooltipster-content"></div></div>');
self.$tooltip = $('<div class="tooltipster-base '+ self.options.theme +'" style="'+ fixedWidth +' '+ maxWidth +' '+ pointerEvents +' '+ animationSpeed +'"><div class="tooltipster-content"></div></div>');
if(supportsTransitions()) {
// only add the animation class if the user has a browser that supports animations
self.$tooltip.addClass(animation);
}

// insert the content
self.insertContent();
Expand Down

0 comments on commit 135f4d1

Please sign in to comment.