Commit 06755e21 by Lee Munkyeong

コードレビュー対応

parent 4acb8d62
...@@ -2563,35 +2563,24 @@ CHAT_UI.refreshForOffline = function() { ...@@ -2563,35 +2563,24 @@ CHAT_UI.refreshForOffline = function() {
$('#room_name_change_button').addClass('ui-state-disabled'); $('#room_name_change_button').addClass('ui-state-disabled');
$('#add_user_button').addClass('ui-state-disabled'); $('#add_user_button').addClass('ui-state-disabled');
$('.fa-download').hide(); $('.fa-download').hide();
if (typeof coview_api != "undefined") { if (typeof coview_api == "undefined") { return }
if (g_isMainMan) { var alertString = "";
alert(getLocalizedString("err_weak_network_exit_collaboration")); if (g_isMainMan) {
if (collaborationJoinFlg != '2') { alertString = getLocalizedString("err_weak_network_exit_collaboration")
CHAT_UI.joinRoom( } else {
CHAT.globalLoginParameter.roomId, alertString = getLocalizedString("err_weak_network_exit_collaboration")
CHAT.globalLoginParameter.name }
); alert(alertString);
} else { if (collaborationJoinFlg != '2') {
if (typeof android != "undefined") { CHAT_UI.joinRoom(
android.openCommunicationHome(); CHAT.globalLoginParameter.roomId,
} else { CHAT.globalLoginParameter.name
webkit.messageHandlers.openCommunicationHome.postMessage({}); );
} } else {
} if (typeof android != "undefined") {
android.openCommunicationHome();
} else { } else {
alert(getLocalizedString("inform_exit_host_collaboration")); webkit.messageHandlers.openCommunicationHome.postMessage({});
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
CHAT.globalLoginParameter.name
);
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
}
} }
} }
} }
......
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