mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 06:36:33 +02:00
fix z-index issue with modals for popovers,tooltips,and dropdowns
This commit is contained in:
4
js/bootstrap-modal.js
vendored
4
js/bootstrap-modal.js
vendored
@@ -44,6 +44,8 @@
|
||||
|
||||
if (this.isShown) return
|
||||
|
||||
$('body').addClass('modal-open')
|
||||
|
||||
this.isShown = true
|
||||
this.$element.trigger('show')
|
||||
|
||||
@@ -77,6 +79,8 @@
|
||||
var that = this
|
||||
this.isShown = false
|
||||
|
||||
$('body').removeClass('modal-open')
|
||||
|
||||
escape.call(this)
|
||||
|
||||
this.$element
|
||||
|
3
js/bootstrap-tooltip.js
vendored
3
js/bootstrap-tooltip.js
vendored
@@ -145,8 +145,6 @@
|
||||
break
|
||||
}
|
||||
|
||||
if (this.options['z-index']) tp['z-index'] = this.options['z-index']
|
||||
|
||||
$tip
|
||||
.css(tp)
|
||||
.addClass(placement)
|
||||
@@ -267,7 +265,6 @@
|
||||
, trigger: 'hover'
|
||||
, title: ''
|
||||
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
||||
, 'z-index': false
|
||||
}
|
||||
|
||||
}( window.jQuery )
|
||||
|
Reference in New Issue
Block a user