Commit aaac2c3f by Takatoshi Miura

ルーム開設ができないバグを修正

parent e48ff9e9
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
} else { } else {
webkit.messageHandlers.loginInfoRequestMessageHandlerId.postMessage({}); webkit.messageHandlers.loginInfoRequestMessageHandlerId.postMessage({});
webkit.messageHandlers.getGlobalParameter.postMessage({}); webkit.messageHandlers.getGlobalParameter.postMessage({});
webkit.messageHandlers.saveSelectedUserList.postMessage("");
} }
function getGlobalParam(chatServerUrl, cmsServerUrl, platform, isMobile, isOnline) { function getGlobalParam(chatServerUrl, cmsServerUrl, platform, isMobile, isOnline) {
CHAT_SERVER_URL = chatServerUrl; CHAT_SERVER_URL = chatServerUrl;
......
...@@ -1330,14 +1330,11 @@ $('#tabMyGroupOnAddUser').on('click', function(e) { ...@@ -1330,14 +1330,11 @@ $('#tabMyGroupOnAddUser').on('click', function(e) {
$('#tabAllGroupOnAddUser').on('click', function(e) { $('#tabAllGroupOnAddUser').on('click', function(e) {
CHAT_UI.refreshAllGroupForAddUser('0'); CHAT_UI.refreshAllGroupForAddUser('0');
}); });
$('#makeRoomConfirmBtn').on('click', '.make_room_confirm_btn', function(e) { $('#makeRoomConfirmBtn').on('click', function(e) {
console.log("makeroomconfirmBtn start");
if (typeof(android) != "undefined") { if (typeof(android) != "undefined") {
console.log("makeroomconfirmBtn for iOS");
android.saveSelectedUserList(CHAT.globalSelectedUserList.join(",")); android.saveSelectedUserList(CHAT.globalSelectedUserList.join(","));
} else { } else {
var userList = CHAT.globalSelectedUserList.join(","); webkit.messageHandlers.saveSelectedUserList.postMessage(CHAT.globalSelectedUserList.join(","));
webkit.messageHandlers.saveSelectedUserList.postMessage(userList);
} }
$('#makeRoomForm').submit(); $('#makeRoomForm').submit();
}); });
...@@ -1346,8 +1343,7 @@ $('#addUserConfirmBtn').on('click', function(e) { ...@@ -1346,8 +1343,7 @@ $('#addUserConfirmBtn').on('click', function(e) {
if (typeof(android) != "undefined") { if (typeof(android) != "undefined") {
android.saveSelectedUserList(CHAT.globalSelectedUserList.join(",")); android.saveSelectedUserList(CHAT.globalSelectedUserList.join(","));
} else { } else {
var userList = CHAT.globalSelectedUserList.join(","); webkit.messageHandlers.saveSelectedUserList.postMessage(CHAT.globalSelectedUserList.join(","));
webkit.messageHandlers.saveSelectedUserList.postMessage(userList);
} }
$('#addUserForm').submit(); $('#addUserForm').submit();
}); });
...@@ -2097,7 +2093,7 @@ CHAT_UI.showMakeRoomConfirmView = function() { ...@@ -2097,7 +2093,7 @@ CHAT_UI.showMakeRoomConfirmView = function() {
if (typeof(android) != "undefined") { if (typeof(android) != "undefined") {
android.createChatRoom("1", userIdList.join(','), trimmedRoomName, makeRoomFlg.MAKE_ROOM); android.createChatRoom("1", userIdList.join(','), trimmedRoomName, makeRoomFlg.MAKE_ROOM);
} else { } else {
webkit.messageHandlers.createChatRoom.postMessage({"roomType": "1", "userIdList": userIdList.join(','), "roomName": newRoomName, "screenFlg": makeRoomFlg.MAKE_ROOM}); webkit.messageHandlers.createChatRoom.postMessage({"roomType": "1", "userIdList": userIdList.join(','), "roomName": trimmedRoomName, "screenFlg": makeRoomFlg.MAKE_ROOM});
} }
} }
}); });
......
...@@ -251,14 +251,6 @@ CHAT.leaveRoom = function() { ...@@ -251,14 +251,6 @@ CHAT.leaveRoom = function() {
} }
$(function() { $(function() {
// ルーム人数選択確認イベント
$('.make_room_btn button').click(function(){
$('form').submit();
});
// ルーム人数選択イベント
$('.make_room_confirm_btn button').click(function(){
$('form').submit();
});
// ユーザー追加確認イベント // ユーザー追加確認イベント
$('.add_user_confirm_btn button').click(function(){ $('.add_user_confirm_btn button').click(function(){
$('form').submit(); $('form').submit();
......
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