From 96f4612c26721342936dfdde8f60f7ce7f79034d Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 4 Jul 2011 09:56:57 +0530 Subject: [PATCH] change html structure of item form --- edgware/static/js/files/browse.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index a9147d6..e88224b 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -153,14 +153,14 @@ function getJQ(f) { function getItemForm(f) { var $form = $('').addClass("itemForm"); - var $titleP = $('
').appendTo($form); - var $titleLabel = $('').addClass("itemFormLabel").text("Title: ").appendTo($titleP); - var $titleInput = $('').addClass("itemTitle").val(f.title).appendTo($titleP); - var $descriptionP = $('').appendTo($form); - var $descriptionLabel = $('').addClass("itemFormLabel").text("Description: ").appendTo($descriptionP); - var $descriptionInput = $('').addClass("itemDescription").val(f.description).appendTo($descriptionP); - var $hiddenInput = $('').addClass("itemId").attr("type", "hidden").val(f.id).appendTo($descriptionP); - var $submitP = $('').appendTo($form); + var $labelsP = $('').appendTo($form); + var $titleLabel = $('').addClass("itemFormLabel").text("Title: ").appendTo($labelsP); + var $descriptionLabel = $('').addClass("itemFormLabel").text("Description: ").appendTo($labelsP); + var $inputsP = $('').appendTo($form); + var $titleInput = $('').addClass("itemTitle").val(f.title).appendTo($inputsP); + var $descriptionInput = $('').addClass("itemDescription").val(f.description).appendTo($inputsP); + var $hiddenInput = $('').addClass("itemId").attr("type", "hidden").val(f.id).appendTo($inputsP); + var $submitP = $('').addClass("submitInput").appendTo($form); var $submit = $('').addClass("submitItem").attr("type", "submit").val("Submit").appendTo($submitP); var $submitStatus = $('').addClass("submitStatus").appendTo($submitP); $submit.click(function(e) {