Commit f5fd284e by Lee Munkyeong

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

parent 697b7184
......@@ -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