Adding the delete button has changed field offsets
authorJosh Williams <jwilliams@endpoint.com>
Tue, 24 Sep 2013 21:13:07 +0000 (17:13 -0400)
committerJosh Williams <jwilliams@endpoint.com>
Tue, 24 Sep 2013 21:13:07 +0000 (17:13 -0400)
karmaworld/templates/partial/filepicker.html

index b0c54a653505577f9d078e4ad2d74742f8b9a82c..4b10d08833fb86a83e9d022247d9e37fcc71ed51 100644 (file)
         _form.style.display = "inline";
         _form.id = null; // clear the unique id
         // save the FP url to the form
-        $(_form.children[0].children[2].children[0]).val(upFile.url);
+        $(_form.children[0].children[3].children[0]).val(upFile.url);
         console.log(upFile);
         // save the mimetype to the form
-        $(_form.children[0].children[2].children[1]).val(upFile.mimetype);
+        $(_form.children[0].children[3].children[1]).val(upFile.mimetype);
 
         document.getElementById('forms_container').appendChild(_form);
       };