From: Andrew Magliozzi Date: Fri, 4 Oct 2013 18:12:19 +0000 (-0400) Subject: attempt to fix save button show / hide X-Git-Tag: release-20150131~386^2~69 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0da6a7ce3b7bdc653286c41219936df5cd31b6f;p=oweals%2Fkarmaworld.git attempt to fix save button show / hide --- 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'; };