Browse Source

unfollow button class was reverted to 'profileUnfollow' for the calm theme dependency

master
erqan 11 years ago
parent
commit
208e93a262
  1. 10
      css/profile.css
  2. 2
      js/interface_common.js

10
css/profile.css

@ -60,7 +60,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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;
}

2
js/interface_common.js

@ -123,7 +123,7 @@ function openProfileModal(e) @@ -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);
});
};

Loading…
Cancel
Save