From a043f67d7d6001e7ae28b7ab6c6f23825e7b65a2 Mon Sep 17 00:00:00 2001 From: David Mason Date: Thu, 20 Mar 2014 14:24:37 +1000 Subject: [PATCH] prepend modal dialogs to body to prevent automatic cloning --- .../webapp/resources/jQuery-File-Upload/9_5_6/js/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zanata-war/src/main/webapp/resources/jQuery-File-Upload/9_5_6/js/main.js b/zanata-war/src/main/webapp/resources/jQuery-File-Upload/9_5_6/js/main.js index 65bc6b3170..8256e68ce2 100644 --- a/zanata-war/src/main/webapp/resources/jQuery-File-Upload/9_5_6/js/main.js +++ b/zanata-war/src/main/webapp/resources/jQuery-File-Upload/9_5_6/js/main.js @@ -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,