Skip to content

Instantly share code, notes, and snippets.

@ben-heath
Created March 16, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben-heath/e18eaebbe34ba3f79a4d15979453c2e5 to your computer and use it in GitHub Desktop.
Save ben-heath/e18eaebbe34ba3f79a4d15979453c2e5 to your computer and use it in GitHub Desktop.
This code works with bootstrap 2, and fixes the show/hide behavior experienced with Respondo if following normal Bootstrap documentation
# Trigger button/link
# Must use the 'onClick' method to target the modal, rather than 'data-target'
<a href="javascript:void(0);" id="login-pop-trigger" onClick="jQuery(\'#login-popup\').modal();" role="button" data-toggle="modal"><i class="fas fa-user-plus" aria-hidden="true"></i> Login</a>
# Simple Modal
<div id="login-popup" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-body">
<p>You are about to delete this Page, this is irreversible.</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment