attempt to fix save button show / hide
authorAndrew Magliozzi <andrew.magliozzi@gmail.com>
Fri, 4 Oct 2013 18:12:19 +0000 (14:12 -0400)
committerAndrew Magliozzi <andrew.magliozzi@gmail.com>
Fri, 4 Oct 2013 18:12:19 +0000 (14:12 -0400)
karmaworld/templates/partial/filepicker.html

index e2449eecbe30e166065d7e1ad641746c8144232b..6eb32c88cd6c98c982d084208ecb7d49b4965c76 100644 (file)
             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';
 
       };