diff --git a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php index ef686f6974af53a4cd7ac332adfe09badb089e14..0ea2aec686e26d931ff18e9f3e07a66eaa228ca9 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();