From e05ea435b7e06b699c5a9d9e85f89166be8ce880 Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 28 Jan 2015 15:56:34 +0000 Subject: [PATCH] profile pages bugs for guest --- templates/client/includes/accounts/simple_user.html | 2 +- templates/client/includes/company/company_object.html | 1 + templates/client/static_client/js/_modules/page.profile.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/client/includes/accounts/simple_user.html b/templates/client/includes/accounts/simple_user.html index ce3f3143..a0ea8b61 100644 --- a/templates/client/includes/accounts/simple_user.html +++ b/templates/client/includes/accounts/simple_user.html @@ -23,7 +23,7 @@
{% if member.profile.country %} - {{ member.profile.country }}, {{ member.profile.city }} + {{ member.profile.country }}, {{ member.profile.city }} {% endif %}
{{ member.get_full_name }}
diff --git a/templates/client/includes/company/company_object.html b/templates/client/includes/company/company_object.html index b779966b..32dfab6a 100644 --- a/templates/client/includes/company/company_object.html +++ b/templates/client/includes/company/company_object.html @@ -174,6 +174,7 @@
{% if user.get_avatar %} + {% else %} {% endif %} diff --git a/templates/client/static_client/js/_modules/page.profile.js b/templates/client/static_client/js/_modules/page.profile.js index 3097990a..c623e624 100644 --- a/templates/client/static_client/js/_modules/page.profile.js +++ b/templates/client/static_client/js/_modules/page.profile.js @@ -123,7 +123,7 @@ if (EXPO.profile){ * @public */ refreshState: function () { - if($.trim( this.$staticValue.text()) == '' && this.$wrapper.length && this.refrashable){ + if(($.trim( this.$staticValue.text()) == '' || $.trim( this.$staticValue.text()) == 'None') && this.$wrapper.length && this.refrashable){ this.$editable.addClass('hidden'); this.$editable.removeClass(EXPO.company.opt.formCurrentClass); this.$description.removeClass('hidden');