From 8a9c813258d01811c9a4925642f36419a9278f8a Mon Sep 17 00:00:00 2001 From: Andrew Magliozzi Date: Fri, 4 Oct 2013 14:16:25 -0400 Subject: [PATCH] hopeful fix --- karmaworld/templates/partial/filepicker.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index 6eb32c8..5ef8dde 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -100,16 +100,17 @@ console.log($(this).parent().parent()); $(this).parent().parent().remove(); }); + + document.getElementById('save-btn').style.display = 'inline'; - var fileup = document.getElementById('filepicker-file-upload'); - fileup.onchange = function(event){ - $dropzone_result.text(event); + }; + + var fileup = document.getElementById('filepicker-file-upload'); + fileup.onchange = function(event){ + $dropzone_result.text(event); for (var i=0; i < event.fpfiles.length; i++){ makeFileForm(event.fpfiles[i]); } - - document.getElementById('save-btn').style.display = 'inline'; - }; // below is obsolete without the drag-drop widget that we removed from the partial above -- 2.25.1