From b0da6a7ce3b7bdc653286c41219936df5cd31b6f Mon Sep 17 00:00:00 2001 From: Andrew Magliozzi Date: Fri, 4 Oct 2013 14:12:19 -0400 Subject: [PATCH] attempt to fix save button show / hide --- karmaworld/templates/partial/filepicker.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index e2449ee..6eb32c8 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -100,15 +100,14 @@ console.log($(this).parent().parent()); $(this).parent().parent().remove(); }); - - }; - 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]); - } + 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'; }; -- 2.25.1