Skip to content

Commit

Permalink
wrap ajax content in div
Browse files Browse the repository at this point in the history
  • Loading branch information
elidupuis committed Oct 26, 2011
1 parent 7c415ad commit 59c58be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
$(target).modal();
} else { // AJAX
$.get(target, {}, function(html) {
$(html)
$('<div/>')
.html(html)
.appendTo('body')
.bind('modal:close', function(event, modal) { modal.elm.remove(); })
.modal();
Expand Down

0 comments on commit 59c58be

Please sign in to comment.