Merge branch 'master' of github.com:twbs/bootstrap

Conflicts:
	docs-assets/js/raw-files.js
This commit is contained in:
Mark Otto 2013-12-24 12:17:48 -08:00
commit 5c2dfbf33b
27 changed files with 36 additions and 30 deletions

View file

@ -18,7 +18,7 @@
this.$backdrop =
this.isShown = null
if (this.options.remote) this.$element.load(this.options.remote)
if (this.options.remote) this.$element.find('.modal-content').load(this.options.remote)
}
Modal.DEFAULTS = {

View file

@ -47,7 +47,7 @@
.map(function () {
var $el = $(this)
var href = $el.data('target') || $el.attr('href')
var $href = /^#\w/.test(href) && $(href)
var $href = /^#./.test(href) && $(href)
return ($href
&& $href.length

View file

@ -177,6 +177,7 @@
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
this.applyPlacement(calculatedOffset, placement)
this.hoverState = null
this.$element.trigger('shown.bs.' + this.type)
}
}
@ -265,6 +266,7 @@
.emulateTransitionEnd(150) :
complete()
this.hoverState = null
this.$element.trigger('hidden.bs.' + this.type)
return this