fix sidebar height issue, request sent button issue
This commit is contained in:
parent
ee442d803d
commit
dcbdddde3c
|
|
@ -95,7 +95,8 @@
|
|||
session_display: sessionDisplayStyle,
|
||||
join_display: joinDisplayStyle,
|
||||
sessionId: sessionId,
|
||||
friendAction: response.is_friend ? "removeMusicianFriend" : (response.pending_friend_request ? "" : "sendMusicianFriendRequest"),
|
||||
//friendAction: response.is_friend ? "removeMusicianFriend" : (response.pending_friend_request ? "" : "sendMusicianFriendRequest"),
|
||||
friendAction: response.is_friend ? "" : (response.pending_friend_request ? "" : "sendMusicianFriendRequest"),
|
||||
followAction: response.is_following ? "removeMusicianFollowing" : "addMusicianFollowing",
|
||||
biography: response.biography,
|
||||
followings: response.followings && response.followings.length > 0 ? followingHtml : "<tr><td>N/A</td></tr>",
|
||||
|
|
@ -133,13 +134,16 @@
|
|||
}
|
||||
else {
|
||||
if (user.is_friend) {
|
||||
$(btnFriendSelector, hoverSelector).html('DISCONNECT');
|
||||
$(btnFriendSelector, hoverSelector).html('CONNECTED');
|
||||
$(btnFriendSelector, hoverSelector).addClass('disabled');
|
||||
}
|
||||
if (user.is_following) {
|
||||
$(btnFollowSelector, hoverSelector).html('UNFOLLOW');
|
||||
}
|
||||
if (user.pending_friend_request) {
|
||||
$(btnFriendSelector, hoverSelector).hide();
|
||||
//$(btnFriendSelector, hoverSelector).hide();
|
||||
$(btnFriendSelector, hoverSelector).html('REQUEST SENT');
|
||||
$(btnFriendSelector, hoverSelector).addClass('disabled');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,11 @@
|
|||
display: block;
|
||||
overflow: auto;
|
||||
margin: 0px 15px;
|
||||
height: 210px;
|
||||
/*height: 210px;*/
|
||||
height: 73%;
|
||||
}
|
||||
.chart-text-section {
|
||||
|
||||
}
|
||||
|
||||
.btn-send-chat-message {
|
||||
|
|
@ -232,6 +236,8 @@
|
|||
position: absolute;
|
||||
bottom: 10px;
|
||||
padding: 0px 15px;
|
||||
height: 20%;
|
||||
min-height: 69px;
|
||||
}
|
||||
|
||||
em {
|
||||
|
|
|
|||
|
|
@ -171,7 +171,9 @@
|
|||
|
||||
function sendMusicianFriendRequest(userId) {
|
||||
rest.sendFriendRequest(JK.app, userId);
|
||||
$("#btnFriend", "#musician-hover").hide();
|
||||
//$("#btnFriend", "#musician-hover").hide();
|
||||
$("#btnFriend").html('REQUEST SENT');
|
||||
$("#btnFriend").addClass('disabled');
|
||||
}
|
||||
|
||||
function removeMusicianFriend(userId) {
|
||||
|
|
|
|||
|
|
@ -104,10 +104,12 @@
|
|||
<div class="chat-status">
|
||||
<span>Chat is available when in session.</span>
|
||||
</div>
|
||||
|
||||
<div class="chat-list-scroller">
|
||||
<div class="previous-chat-list wrapword">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-sender">
|
||||
<form class="chat-message-form">
|
||||
<textarea name="chat-message" id="new-chat-message" placeholder="enter message"></textarea>
|
||||
|
|
|
|||
Loading…
Reference in New Issue