From 3d73b5325f152d5851fab22d99eb20b0a7f46442 Mon Sep 17 00:00:00 2001 From: Catouse Date: Tue, 1 Sep 2015 17:11:42 +0800 Subject: [PATCH] * popover support tipId and tipClass options. --- src/js/popover.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/popover.js b/src/js/popover.js index 819724ea..0a4de275 100644 --- a/src/js/popover.js +++ b/src/js/popover.js @@ -74,6 +74,9 @@ $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content) $tip.removeClass('fade top bottom left right in') + + if (this.options.tipId) $tip.attr('id', this.options.tipId) + if (this.options.tipClass) $tip.addClass(this.options.tipClass) // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do // this manually by checking the contents. -- GitLab