Skip to content

Commit

Permalink
[bootstrap 2] fix tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstrat committed May 1, 2012
1 parent bf1e6aa commit 5abb0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion UI/js/kadohui.js
Expand Up @@ -98,8 +98,9 @@ KadOHui.init = function() {
}); });
}); });


$("[rel=tooltip]") $(".tab-content")
.tooltip({ .tooltip({
selector : "[rel=tooltip]",
title : function() { title : function() {
var self = $(this); var self = $(this);
if (self.is('time')) { if (self.is('time')) {
Expand Down
6 changes: 4 additions & 2 deletions UI/js/vendor/bootstrap-tooltip.js
Expand Up @@ -210,8 +210,10 @@
, $e = this.$element , $e = this.$element
, o = this.options , o = this.options


title = $e.attr('data-original-title') //hacking title : if an options.title is provided, force to use it.
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) title = (typeof o.title !== 'undefined') ?
(typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
: $e.attr('data-original-title');


return title return title
} }
Expand Down

0 comments on commit 5abb0ff

Please sign in to comment.