File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 36
36
37
37
setContent : function ( ) {
38
38
var $tip = this . tip ( )
39
- $tip . find ( '.title' ) [ this . options . html ? 'html' : 'text' ] ( this . getTitle ( ) )
40
- $tip . find ( '.content p' ) [ this . options . html ? 'html' : 'text' ] ( this . getContent ( ) )
39
+ $tip . find ( this . options . titleSelector ) [ this . options . html ? 'html' : 'text' ] ( this . getTitle ( ) )
40
+ $tip . find ( this . options . contentSelector ) [ this . options . html ? 'html' : 'text' ] ( this . getContent ( ) )
41
41
$tip [ 0 ] . className = 'popover'
42
42
}
43
43
81
81
$ . fn . popover . defaults = $ . extend ( { } , $ . fn . twipsy . defaults , {
82
82
placement : 'right'
83
83
, template : '<div class="arrow"></div><div class="inner"><h3 class="title"></h3><div class="content"><p></p></div></div>'
84
+ , titleSelector : '.title'
85
+ , contentSelector : '.content p'
84
86
} )
85
87
86
- } ( window . jQuery || window . ender ) ;
88
+ } ( window . jQuery || window . ender ) ;
You can’t perform that action at this time.
0 commit comments