Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
prepend modal dialogs to body to prevent automatic cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Apr 2, 2014
1 parent 4ec460d commit a043f67
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -16,7 +16,11 @@ $(function () {

$('.fileupload').each(function() {
var uploadForm = $(this),
dropZone = uploadForm.find('.drag-drop')
dropZone = uploadForm.find('.drag-drop'),
container = uploadForm.closest('.modal');

// move the container to the end of the body so it is on top of everything
container.appendTo('body');

uploadForm.fileupload({
sequentialUploads: true,
Expand Down

0 comments on commit a043f67

Please sign in to comment.