From: Josh Williams Date: Tue, 24 Sep 2013 21:13:07 +0000 (-0400) Subject: Adding the delete button has changed field offsets X-Git-Tag: release-20150131~386^2~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d25dadbb9a2989611f320023ed41b77243e5731c;p=oweals%2Fkarmaworld.git Adding the delete button has changed field offsets --- 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); };