Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap-modalmanager depends on DOM ready but it's never checked. #12

Closed
nathan-appere opened this issue Oct 31, 2012 · 1 comment
Closed

Comments

@nathan-appere
Copy link

First lines
var $baseModal = $('

').appendTo('body'),
$baseBackdrop = $('
').appendTo('body'),
$baseModalAbs = $('
').appendTo('body'),
$baseBackdropAbs = $('
').appendTo('body');

depend on the DOM being loaded, but it's never checked.

It works in the example since the scripts are loaded in the bottom of the page, so the static DOM is already accessible.

If you load bootstrap-modalmanager.js in HEAD, appendTo('body') will fail silently.

@jschr
Copy link
Owner

jschr commented Oct 31, 2012

Thanks for opening the issue. This should be fixed now in the latest version.

@jschr jschr closed this as completed Oct 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants