# HG changeset patch # User neko259 # Date 2014-06-23 17:30:44 # Node ID 7f2e98f4a47c0b2d121eedfdf489f7e3c8207143 # Parent 23e818d3c1c95c01e10f8270fd95394b016c6bc9 Fixed full form switching diff --git a/boards/static/js/form.js b/boards/static/js/form.js --- a/boards/static/js/form.js +++ b/boards/static/js/form.js @@ -26,8 +26,8 @@ var fullForm = $('.swappable-form-full') function swapForm() { if (isCompact) { // TODO Use IDs (change the django form code) instead of absolute numbers - fullForm.find('textarea').appendTo(fullForm.find('.form-row')[4]); - fullForm.find('.file_wrap').appendTo(fullForm.find('.form-row')[7]); + fullForm.find('textarea').appendTo(fullForm.find('.form-row')[4].children[0]); + fullForm.find('.file_wrap').appendTo(fullForm.find('.form-row')[7].children[0]); fullForm.find('.form-row').show(); scrollToBottom();