From fd6cd52d4b2b05c977b0dc65369a553643bcc1cf Mon Sep 17 00:00:00 2001
From: Matthew Juhl <mjuhl24@gmail.com>
Date: Tue, 30 Mar 2010 20:12:19 +0000
Subject: [PATCH] Make compatible with mobile.

---
 plugins/unl_theme/scripts/JS/enhanceProfileForm.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
index dc583cc3..553161a5 100644
--- a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
+++ b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
@@ -47,12 +47,15 @@
 		$("form.cool label br").remove();
 		$("form.cool p.form-field-description").each(function(){
 			$(this).appendTo($(this).prev()).css({
-				marginLeft: "164px",
-				marginTop: "36px",
+				
 				fontSize: "75%",
 				color: "#1091D1"
 			});
 		});
+		$("#maincontent p.form-field-description").css({
+			marginLeft: "164px",
+			marginTop: "36px"
+		});
 		$("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());
@@ -476,7 +479,6 @@
 	     
 		$("select[name=form_data_profile_dob_day] option[value=" + dob_day + "]").attr("selected","selected");
 
-		WDN.log("Opt in value...... " + $("input[name=form_data_info_alumni_opt_in]").val());
 		var alumniOptIn = $("input[name=form_data_info_alumni_opt_in]").val();
 		$("input[name=form_data_info_alumni_opt_in]").replaceWith('<input type="checkbox" name="form_data_info_alumni_opt_in" value="yes" />');
 		if (alumniOptIn == "yes"){
@@ -495,7 +497,7 @@
 
 		$("select[name=form_data_profile_role]").change(alumniCheckbox);
 
-		$("textarea[name=form_data_profile_unl_impact]").parent().css({clear:"both",display:"block","margin-left":"150px"}).siblings("label").css("width","330px");
+		$("#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