Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
The default media allow to float a media object (images, video, audio) to the left or right of a content block.
@@ -155,7 +157,7 @@
this.escape()
- $(document).off('focusin.modal')
+ this.$element.off('focusin.modal')
this.$element
.removeClass('in')
@@ -168,7 +170,7 @@
, enforceFocus: function () {
var that = this
- $(document).on('focusin.modal', function (e) {
+ this.$element.on('focusin.modal', function (e) {
if (that.$element[0] !== e.target && !that.$element.has(e.target).length) {
that.$element.focus()
}
@@ -832,6 +832,8 @@
, actualHeight
, placement
, tp
+ , list_els = {'table':2, 'ul':1, 'ol':1}
+ , ins_after_obj
if (this.hasContent() && this.enabled) {
$tip = this.tip()
@@ -847,10 +849,16 @@
inside = /in/.test(placement)
+ ins_after_obj = this.$element;
+
+ $.each(list_els, $.proxy(function(tag,max){
+ if(this.$element.parentsUntil(tag).length<=max) {ins_after_obj=this.$element.closest(tag);return false;}
+ }, this));
+
$tip
.detach()
.css({ top: 0, left: 0, display: 'block' })
- .insertAfter(this.$element)
+ .insertAfter(ins_after_obj)
pos = this.getPosition(inside)
Вышел Twitter Bootstrap 2.2.1