Created
April 2, 2012 05:29
-
-
Save bradleybeddoes/2281012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('click', '.ajax-modal', function() { | |
| $.get($(this).attr('data-load'),function(d){ | |
| $("#show-ajaxload-modal .modal-body").html(d); | |
| $("#show-ajaxload-modal").modal('show'); | |
| }); | |
| }); | |
| ---- | |
| <a href="#" class="btn btn-small ajax-modal" data-load="${createLink(controller:'subject', action:'showpublic', id:subject.id, absolute:true)}" ><g:message code="label.quickview" default="Quick View"/></a> | |
| ---- | |
| <div id="show-ajaxload-modal" class="modal hide fade"> | |
| <div class="modal-body"></div> | |
| </div> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just something simple to load dynamic content into a Twitter Bootstrap modal window.