diff options
| author | Jacob Thornton <[email protected]> | 2012-04-04 15:02:30 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-04-04 15:02:30 -0700 |
| commit | 83febb3452ecd81241ddc004509ec64de8b13a92 (patch) | |
| tree | 049d15d5ebed8c11e804cfc293f3f695072b8aea /js | |
| parent | 4bd611884a5f1dd02878f73bccd51d85c1e49186 (diff) | |
| download | bootstrap-83febb3452ecd81241ddc004509ec64de8b13a92.tar.xz bootstrap-83febb3452ecd81241ddc004509ec64de8b13a92.zip | |
remake and add isHTML check to popover as well
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-popover.js | 4 | ||||
| -rw-r--r-- | js/bootstrap-tooltip.js | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/js/bootstrap-popover.js b/js/bootstrap-popover.js index ee47e43a2..df6ef3dff 100644 --- a/js/bootstrap-popover.js +++ b/js/bootstrap-popover.js @@ -38,8 +38,8 @@ , title = this.getTitle() , content = this.getContent() - $tip.find('.popover-title').html(title) - $tip.find('.popover-content > *').html(content) + $tip.find('.popover-title')[this.isHTML(title) ? 'html' : 'text'](title) + $tip.find('.popover-content > *')[this.isHTML(content) ? 'html' : 'text'](content) $tip.removeClass('fade top bottom left right in') } diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 63e903cb4..2f9254ed2 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -167,9 +167,8 @@ , setContent: function () { var $tip = this.tip() , title = this.getTitle() - , isHTML = this.isHTML(title) - $tip.find('.tooltip-inner')[isHTML ? 'html' : 'text'](title) + $tip.find('.tooltip-inner')[this.isHTML(title) ? 'html' : 'text'](title) $tip.removeClass('fade in top bottom left right') } |
