Browse files

fixing bootstrap 2.0 support for popover

  • Loading branch information...
1 parent ebaf0fe commit ace4e29fa72b394dcd930d7701e75bee1a85b46d @anutron committed May 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/UI/Bootstrap.Tooltip.js
View
3 Source/UI/Bootstrap.Tooltip.js
@@ -44,6 +44,9 @@ Bootstrap.Tooltip = Bootstrap.Twipsy = new Class({
initialize: function(el, options){
this.element = document.id(el);
this.setOptions(options);
+ var location = this.options.location;
+ if (location == 'above') this.options.location = 'top'; //bootstrap 2.0
+ if (location == 'below') this.options.location = 'bottom'; //bootstrap 2.0
this._attach();
},

0 comments on commit ace4e29

Please sign in to comment.