From d25dadbb9a2989611f320023ed41b77243e5731c Mon Sep 17 00:00:00 2001 From: Josh Williams Date: Tue, 24 Sep 2013 17:13:07 -0400 Subject: [PATCH] Adding the delete button has changed field offsets --- karmaworld/templates/partial/filepicker.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index b0c54a6..4b10d08 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -76,10 +76,10 @@ _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); }; -- 2.25.1