Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-04-05 02:02:30 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-04-05 02:02:30 +0400
commit83febb3452ecd81241ddc004509ec64de8b13a92 (patch)
tree049d15d5ebed8c11e804cfc293f3f695072b8aea /js
parent4bd611884a5f1dd02878f73bccd51d85c1e49186 (diff)
remake and add isHTML check to popover as well
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-popover.js4
-rw-r--r--js/bootstrap-tooltip.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/js/bootstrap-popover.js b/js/bootstrap-popover.js
index ee47e43a2e..df6ef3dfff 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 63e903cb48..2f9254ed2a 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')
}