Commit f60f08a4 by Lee Munkyeong

Merge branch 'feature/develop_reset_pen_status_on_change__host_and_collaboration' into 'develop'

ホスト権限が更新された場合ペン状態をOFFにする

See merge request !138
parents 697b7184 f5fd284e
......@@ -134,3 +134,11 @@ $(function () {
}
})
});
function penOff() {
if ($('#penBtn').hasClass('bg_blue')) {
$('#coviewPenCtrBtn').click();
$('#penBtn').addClass('bg_red');
$('#penBtn').removeClass('bg_blue');
}
};
......@@ -176,6 +176,8 @@ $(function () {
} else {
Coview_changeHost(data.payload.loginId);
}
} else if (data.type === "API_SEND_OWNER_CHANGE_COMPLETE") {
penOff();
}
});
});
......@@ -407,6 +409,7 @@ function changeCollaboration(changeCollaborationType) {
coview_api.ChangeCollaboration('audio');
break;
}
penOff();
if (CHAT_UTIL.isIOS()) {
webkit.messageHandlers.changeCollaboration.postMessage({"changeCollaborationType": changeCollaborationType, "meetingId": newMeetingId});
} else if (CHAT_UTIL.isAndroid()) {
......@@ -423,6 +426,7 @@ function initCollaborationUI(changeCollaborationType){
$(".menu_btn").click();
}
$("link[href='./css/collaboration_board.css']").remove();
penOff();
switch (changeCollaborationType) {
case COLLABORATION_TYPE.AUDIO:
$('.collaboration_contents').addClass('none');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment