mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-10 05:14:42 +00:00
fixes #8703
This commit is contained in:
parent
ce57378705
commit
e5a7af36d5
4 changed files with 12 additions and 8 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
offset: navHeight
|
offset: navHeight
|
||||||
})
|
})
|
||||||
|
|
||||||
$('[href=#]').click(function (e) {
|
$('.bs-docs-container [href=#]').click(function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
8
dist/js/bootstrap.js
vendored
8
dist/js/bootstrap.js
vendored
|
|
@ -1054,9 +1054,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
var $body = $(document.body)
|
$(function () {
|
||||||
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
var $body = $(document.body)
|
||||||
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
||||||
|
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
||||||
|
})
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -234,8 +234,10 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
var $body = $(document.body)
|
$(function () {
|
||||||
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
var $body = $(document.body)
|
||||||
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
||||||
|
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
||||||
|
})
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue