From 59c58be6226c423985b7d2be97bd7e2d90086914 Mon Sep 17 00:00:00 2001 From: Eli Dupuis Date: Tue, 25 Oct 2011 21:56:49 -0600 Subject: [PATCH] wrap ajax content in div --- jquery.modal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.modal.js b/jquery.modal.js index 8e81971..79dd57e 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -106,7 +106,8 @@ $(target).modal(); } else { // AJAX $.get(target, {}, function(html) { - $(html) + $('
') + .html(html) .appendTo('body') .bind('modal:close', function(event, modal) { modal.elm.remove(); }) .modal();