1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 22:39:11 +02:00

tests & docs & twipsy too

This commit is contained in:
Rod Vagg
2011-11-06 13:20:09 +11:00
parent 3628eb79ae
commit 4d2e32e809
4 changed files with 70 additions and 10 deletions

View File

@@ -119,7 +119,7 @@
, setContent: function () {
var $tip = this.tip()
$tip.find('.twipsy-inner')[this.options.html ? 'html' : 'text'](this.getTitle())
$tip.find(this.options.contentSelector)[this.options.html ? 'html' : 'text'](this.getTitle())
$tip[0].className = 'twipsy'
}
@@ -302,10 +302,11 @@
, title: 'title'
, trigger: 'hover'
, template: '<div class="twipsy-arrow"></div><div class="twipsy-inner"></div>'
, contentSelector: '.twipsy-inner'
}
$.fn.twipsy.elementOptions = function(ele, options) {
return $.extend({}, options, $(ele).data())
}
}( window.jQuery || window.ender );
}( window.jQuery || window.ender );