From d564858761d9b05a8c38a71a76628d1a518981cd Mon Sep 17 00:00:00 2001
From: Matthew Juhl <mjuhl24@gmail.com>
Date: Tue, 27 Apr 2010 18:29:44 +0000
Subject: [PATCH] Remove previous styling information from profile editor JS.

---
 .../unl_theme/scripts/JS/enhanceProfileForm.php   | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
index ef686f69..0ea2aec6 100644
--- a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
+++ b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
@@ -25,7 +25,7 @@
 			
 	$(document).ready(function(){
 		/* SET UP PROFILE EDIT FORM */
-		$("form.cool fieldset:first-child").css("margin-top","0");
+		
 		$("p.form-description").remove();
 		
 		// get the year and country values for later use
@@ -46,16 +46,13 @@
 		$("form.cool label").wrap("<li></li>").addClass("element");
 		$("form.cool label br").remove();
 		$("form.cool p.form-field-description").each(function(){
-			$(this).appendTo($(this).prev()).css({
+			$(this).appendTo($(this).prev())/*.css({
 				
 				fontSize: "75%",
 				color: "#1091D1"
-			});
-		});
-		$("body.fixed #maincontent p.form-field-description").css({
-			marginLeft: "164px",
-			marginTop: "46px"
+			})*/;
 		});
+		
 		$("form.cool fieldset input[type!=submit], form.cool fieldset select, form.cool fieldset textarea").wrap('<div class="element"></div>');
 		$("form.cool label div").each(function(){
 			$(this).insertAfter($(this).parent());
@@ -76,7 +73,7 @@
 		$("input[name=form_data_profile_attended_to]").remove();
 
 		$("input[name=form_data_map_explanation]").parent().parent().css("border-bottom","#CCC 1px dotted");
-		$("input[name=form_data_profile_city]").parent().parent().prepend('<h6 style="width:150px;margin:0;text-align:right;"><strong>Your Map Location</strong></h6>'
+		$("input[name=form_data_profile_city]").parent().parent().prepend('<h6><strong>Your Map Location</strong></h6>'
 				+ '<p>Please enter the location you want to use for yourself on the map.</p>');
 
 
@@ -497,7 +494,7 @@
 
 		$("select[name=form_data_profile_role]").change(alumniCheckbox);
 
-		$("body.fixed #maincontent textarea[name=form_data_profile_unl_impact]").parent().css({clear:"both",display:"block","margin-left":"150px"}).siblings("label").css("width","330px");
+		//$("body.fixed #maincontent textarea[name=form_data_profile_unl_impact]").parent().css({clear:"both",display:"block","margin-left":"150px"}).siblings("label").css("width","330px");
 		
 		$("#formloading").remove();
 		$("#maincontent form.cool").show();
-- 
GitLab