1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 10:34:07 +02:00

Revert "Use mousedown instead of click for backdrop click detection; fixes #13816"

This commit is contained in:
Heinrich Fenkart
2014-07-30 23:54:25 +02:00
parent fc1db2e74b
commit 18c0a1c977
2 changed files with 3 additions and 3 deletions

View File

@@ -141,7 +141,7 @@ $(function () {
notEqual($('#modal-test').length, 0, 'modal insterted into dom')
$('.contents').click()
ok($('#modal-test').is(':visible'), 'modal visible')
$('#modal-test').mousedown()
$('#modal-test').click()
})
.on('hidden.bs.modal', function () {
ok(!$('#modal-test').is(':visible'), 'modal hidden')
@@ -196,7 +196,7 @@ $(function () {
$('<div id="modal-test"><div class="contents"/></div>')
.on('shown.bs.modal', function () {
triggered = 0
$('#modal-test').mousedown()
$('#modal-test').click()
})
.on('hide.bs.modal', function () {
triggered += 1