1
0
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:
Jacob Thornton
2011-11-08 11:04:26 -08:00
parent b37a336417
commit 0c7a80c79b
3 changed files with 2 additions and 39 deletions

View File

@@ -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' )