From bdde1599c4359c72b4912ee8bbc64e5e5de34b86 Mon Sep 17 00:00:00 2001 From: Kyle Fiedler Date: Thu, 2 Feb 2012 17:09:19 -0500 Subject: [PATCH] More edits to the profile page --- profile.html | 8 ++++++-- sass/_profile.scss | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/profile.html b/profile.html index 1ed517b2a8..ed3ac70f85 100644 --- a/profile.html +++ b/profile.html @@ -64,8 +64,9 @@ var loc=true; // Activate on clicks? Not if already clicked. var lang=true; $(function() { $("#change_location").click(function() { + $(this).hide(); + log_event("profile", {"type":"location_show", "old":$("#location_sub").text()}); - $("#change-location").hide(); if(loc) { $("#description").html('
'+ @@ -78,7 +79,8 @@ $(function() { $("#location_sub").html(''+ ''); $("#change_loc_button").click(function() { - $("#change-location").show(); + $("#change_location").show(); + postJSON('/change_setting', {'location':$("#id_loc_text").attr("value")}, function(json) { $("#location_sub").text(json.location); loc=true; @@ -90,6 +92,7 @@ $(function() { }); $("#change_language").click(function() { + $(this).hide(); log_event("profile", {"type":"language_show", "old":$("#language_sub").text()}); if(lang) { @@ -97,6 +100,7 @@ $(function() { $("#language_sub").html(''+ ''); $("#change_lang_button").click(function() { + $("#change_language").show(); postJSON('/change_setting', {'language':$("#id_lang_text").attr("value")}, function(json) { $("#language_sub").text(json.language); lang=true; diff --git a/sass/_profile.scss b/sass/_profile.scss index 504185b055..b383c61a85 100644 --- a/sass/_profile.scss +++ b/sass/_profile.scss @@ -23,11 +23,29 @@ div.profile-wrapper { @include box-shadow(0 1px 0 #eee); padding: 7px lh(); border-bottom: 1px solid #d3d3d3; + + div#location_sub, div#language_sub { + font-weight: bold; + @include inline-block(); + + input { + margin: lh(.5) 0; + } + + &:empty { + padding: 0; + } + } + + div#description { + font-size: 12px; + } } } div#change_password_pop { padding: 7px lh(); + color: #4D4D4D; } }