mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-29 23:09:05 +02:00
remove selector options for popover, in favor of more generic content selector
This commit is contained in:
6
js/bootstrap-popover.js
vendored
6
js/bootstrap-popover.js
vendored
@@ -36,8 +36,8 @@
|
||||
|
||||
setContent: function () {
|
||||
var $tip = this.tip()
|
||||
$tip.find(this.options.titleSelector)[this.options.html ? 'html' : 'text'](this.getTitle())
|
||||
$tip.find(this.options.contentSelector)[this.options.html ? 'html' : 'text'](this.getContent())
|
||||
$tip.find('.title')[this.options.html ? 'html' : 'text'](this.getTitle())
|
||||
$tip.find('.content > *')[this.options.html ? 'html' : 'text'](this.getContent())
|
||||
$tip[0].className = 'popover'
|
||||
}
|
||||
|
||||
@@ -83,8 +83,6 @@
|
||||
placement: 'right'
|
||||
, content: 'data-content'
|
||||
, template: '<div class="arrow"></div><div class="inner"><h3 class="title"></h3><div class="content"><p></p></div></div>'
|
||||
, titleSelector: '.title'
|
||||
, contentSelector: '.content p'
|
||||
})
|
||||
|
||||
$.fn.twipsy.rejectAttrOptions.push( 'content' )
|
||||
|
Reference in New Issue
Block a user