From 208e93a2623ced3c2818b8b42f2208a509991a63 Mon Sep 17 00:00:00 2001 From: erqan Date: Fri, 11 Apr 2014 19:29:53 +0300 Subject: [PATCH] unfollow button class was reverted to 'profileUnfollow' for the calm theme dependency --- css/profile.css | 10 +++++----- js/interface_common.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/css/profile.css b/css/profile.css index ed2e6c3..8433936 100644 --- a/css/profile.css +++ b/css/profile.css @@ -60,7 +60,7 @@ .profile-card .direct-messages, .profile-card .direct-messages-with-user, .profile-card .follow, -.profile-card .unfollow +.profile-card .profileUnfollow { display: block; position: absolute; @@ -76,11 +76,11 @@ transition: all .2s linear; } .profile-card .follow, -.profile-card .unfollow +.profile-card .profileUnfollow { right: 135px; } -.profile-card .unfollow +.profile-card .profileUnfollow { background-color: rgba( 0, 0, 0, .3 ); } @@ -90,7 +90,7 @@ { background: rgba( 0, 0, 0, .3 ); } -.profile-card .unfollow:hover +.profile-card .profileUnfollow:hover { background: rgba( 0, 0, 0, .1 ); } @@ -303,7 +303,7 @@ .profile-modal .direct-messages, .profile-modal .direct-messages-with-user, .profile-modal .follow, -.profile-modal .unfollow +.profile-modal .profileUnfollow { bottom: 10px; } diff --git a/js/interface_common.js b/js/interface_common.js index e144d06..b905424 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -123,7 +123,7 @@ function openProfileModal(e) //hed//add dinamic follow button in profile modal window if(followingUsers.indexOf(username) != -1){ - $('.profile-card button.followButton').first().removeClass('follow').addClass('unfollow').text(polyglot.t('Unfollow')).on('click', function(){ + $('.profile-card button.followButton').first().removeClass('follow').addClass('profileUnfollow').text(polyglot.t('Unfollow')).on('click', function(){ unfollow(username); }); };