Commit 3ed4b701 by Kim Peace

Added prints in chat-add-user

parent be2d9a05
...@@ -330,7 +330,14 @@ NativeBridgeDelegate.joinChangedCollaboration = function ( ...@@ -330,7 +330,14 @@ NativeBridgeDelegate.joinChangedCollaboration = function (
collaborationType, collaborationType,
meetingID meetingID
) { ) {
console.debug("call Native Delegate - joinChangedCollaboration");
console.debug(
"call Native Delegate - joinChangedCollaboration collaborationType: " +
collaborationType +
", meetingID: " +
meetingID
);
const collaborationNumber = const collaborationNumber =
CHAT_UTIL.getCollaborationTypeNumber(collaborationType); CHAT_UTIL.getCollaborationTypeNumber(collaborationType);
if (deviceInfo.isiOS()) { if (deviceInfo.isiOS()) {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
var ChatAddUser = {}; var ChatAddUser = {};
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
console.log("peacekim:: DOMContentLoaded on chat-add-user.js");
// メンバー検索 // メンバー検索
ChatAddUser.bindMemberSearch(); ChatAddUser.bindMemberSearch();
// iOSキーボード変換検知用 // iOSキーボード変換検知用
...@@ -20,6 +21,13 @@ ChatAddUser.searchUser = function (keyword) { ...@@ -20,6 +21,13 @@ ChatAddUser.searchUser = function (keyword) {
let hasNoData = false; let hasNoData = false;
overlayMessage.empty(); overlayMessage.empty();
console.log(
"peacekim:: ChatAddUser.searchUser isAllGroup: " +
isAllGroup +
" keyword: " +
keyword
);
//全グループ検索画面 //全グループ検索画面
if (isAllGroup) { if (isAllGroup) {
//グループデータ検索 //グループデータ検索
...@@ -41,6 +49,7 @@ ChatAddUser.searchUser = function (keyword) { ...@@ -41,6 +49,7 @@ ChatAddUser.searchUser = function (keyword) {
} }
// Set NoResult // Set NoResult
if (hasNoData) { if (hasNoData) {
console.log("peacekim:: ChatAddUser.searchUser has no data");
const noResultMessage = getNoResultMessage(); const noResultMessage = getNoResultMessage();
overlayMessage.append(noResultMessage); overlayMessage.append(noResultMessage);
} }
...@@ -49,6 +58,7 @@ ChatAddUser.searchUser = function (keyword) { ...@@ -49,6 +58,7 @@ ChatAddUser.searchUser = function (keyword) {
/** UTILS */ /** UTILS */
ChatAddUser.bindMemberSearch = function () { ChatAddUser.bindMemberSearch = function () {
console.log("peacekim:: ChatAddUser.bindMemberSearch");
const searchInput = $('#chat_add_user .search_form input[type="search"]'); const searchInput = $('#chat_add_user .search_form input[type="search"]');
searchInput.click(function (e) { searchInput.click(function (e) {
//画面タイトル設定 //画面タイトル設定
...@@ -57,6 +67,7 @@ ChatAddUser.bindMemberSearch = function () { ...@@ -57,6 +67,7 @@ ChatAddUser.bindMemberSearch = function () {
}); });
searchInput.keyup(function (e) { searchInput.keyup(function (e) {
console.log("peacekim:: ChatAddUser.bindMemberSearch searchInput");
const keyword = searchInput.val(); const keyword = searchInput.val();
const enterKeyPressed = e.key == "Enter" || e.KeyCode == 13; const enterKeyPressed = e.key == "Enter" || e.KeyCode == 13;
const keywordNotEmpty = keyword != "" && keyword.length != 0; const keywordNotEmpty = keyword != "" && keyword.length != 0;
...@@ -82,6 +93,7 @@ ChatAddUser.bindMemberSearch = function () { ...@@ -82,6 +93,7 @@ ChatAddUser.bindMemberSearch = function () {
}; };
ChatAddUser.bindiOSKeyBoardEvent = function () { ChatAddUser.bindiOSKeyBoardEvent = function () {
console.log("peacekim:: ChatAddUser.bindiOSKeyBoardEvent");
const searchInput = $('#chat_add_user .search_form input[type="search"]'); const searchInput = $('#chat_add_user .search_form input[type="search"]');
searchInput.on("compositionend", function () { searchInput.on("compositionend", function () {
if (deviceInfo.isiOS()) { if (deviceInfo.isiOS()) {
...@@ -92,6 +104,7 @@ ChatAddUser.bindiOSKeyBoardEvent = function () { ...@@ -92,6 +104,7 @@ ChatAddUser.bindiOSKeyBoardEvent = function () {
}; };
ChatAddUser.searchGroupData = function (groupList, overlayMessage) { ChatAddUser.searchGroupData = function (groupList, overlayMessage) {
console.log("peacekim:: ChatAddUser.searchGroupData");
const groupTemplate = getTemplate(TemplateURL.MAKE_ROOM_GROUP_LIST); const groupTemplate = getTemplate(TemplateURL.MAKE_ROOM_GROUP_LIST);
groupList.forEach(function (group) { groupList.forEach(function (group) {
...@@ -114,6 +127,7 @@ ChatAddUser.renderGroupTemplate = function (groupTemplate, groupName, groupID) { ...@@ -114,6 +127,7 @@ ChatAddUser.renderGroupTemplate = function (groupTemplate, groupName, groupID) {
}; };
ChatAddUser.searchUserData = function (userList, overlayMessage) { ChatAddUser.searchUserData = function (userList, overlayMessage) {
console.log("peacekim:: ChatAddUser.searchUserData");
const userTemplate = getTemplate(TemplateURL.MAKE_ROOM_USER_LIST); const userTemplate = getTemplate(TemplateURL.MAKE_ROOM_USER_LIST);
userList.forEach(function (user) { userList.forEach(function (user) {
ChatAddUser.setUserProfile(user); ChatAddUser.setUserProfile(user);
...@@ -129,6 +143,7 @@ ChatAddUser.setUserProfile = function (user) { ...@@ -129,6 +143,7 @@ ChatAddUser.setUserProfile = function (user) {
}; };
ChatAddUser.checkUser = function (user) { ChatAddUser.checkUser = function (user) {
console.log("peacekim:: ChatAddUser.checkUser user: "+user);
let findObj = ChatManagementCommon.selectedUserList.find(function ( let findObj = ChatManagementCommon.selectedUserList.find(function (
shopMemberID shopMemberID
) { ) {
...@@ -146,20 +161,24 @@ ChatAddUser.renderUserTemplate = function (userTemplate, userList) { ...@@ -146,20 +161,24 @@ ChatAddUser.renderUserTemplate = function (userTemplate, userList) {
}; };
$("#addUserConfirmBtn").on("click", function (e) { $("#addUserConfirmBtn").on("click", function (e) {
console.log("peacekim:: addUserConfirmBtn clicked");
const selectedUserList = ChatManagementCommon.selectedUserList.join(","); const selectedUserList = ChatManagementCommon.selectedUserList.join(",");
NativeBridgeDelegate.saveSelectedUserList(selectedUserList); NativeBridgeDelegate.saveSelectedUserList(selectedUserList);
$("#addUserForm").submit(); $("#addUserForm").submit();
}); });
$("#tabAllGroupOnAddUser").on("click", function (e) { $("#tabAllGroupOnAddUser").on("click", function (e) {
console.log("peacekim:: tabAllGroupOnAddUser clicked");
ChatAddUser.refreshAllGroupForAddUser("0"); ChatAddUser.refreshAllGroupForAddUser("0");
}); });
$("#tabMyGroupOnAddUser").on("click", function (e) { $("#tabMyGroupOnAddUser").on("click", function (e) {
console.log("peacekim:: tabMyGroupOnAddUser clicked");
ChatAddUser.refreshMyGroupForAddUser(); ChatAddUser.refreshMyGroupForAddUser();
}); });
ChatAddUser.refreshMyGroupForAddUser = function () { ChatAddUser.refreshMyGroupForAddUser = function () {
console.log("peacekim:: ChatAddUser.refreshMyGroupForAddUser");
$(".modal-backdrop").remove(); $(".modal-backdrop").remove();
$("#favoriteListForMakeRoom").html(""); $("#favoriteListForMakeRoom").html("");
$("#myGroupListForMakeRoom").html(""); $("#myGroupListForMakeRoom").html("");
...@@ -178,6 +197,7 @@ ChatAddUser.refreshMyGroupForAddUser = function () { ...@@ -178,6 +197,7 @@ ChatAddUser.refreshMyGroupForAddUser = function () {
}; };
ChatAddUser.appendFavoriteGroup = function () { ChatAddUser.appendFavoriteGroup = function () {
console.log("peacekim:: ChatAddUser.appendFavoriteGroup");
// グループの様式を読み込む // グループの様式を読み込む
const groupTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_LIST); const groupTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_LIST);
// お気に入りグループ取得。 // お気に入りグループ取得。
...@@ -194,6 +214,7 @@ ChatAddUser.appendFavoriteGroup = function () { ...@@ -194,6 +214,7 @@ ChatAddUser.appendFavoriteGroup = function () {
}; };
ChatAddUser.appendFavoriteUser = function () { ChatAddUser.appendFavoriteUser = function () {
console.log("peacekim:: ChatAddUser.appendFavoriteUser");
// ユーザの様式を読み込む // ユーザの様式を読み込む
const userTemplate = getTemplate(TemplateURL.ADD_USER_USER_LIST); const userTemplate = getTemplate(TemplateURL.ADD_USER_USER_LIST);
//お気に入りユーザ取得。 //お気に入りユーザ取得。
...@@ -217,6 +238,7 @@ ChatAddUser.appendFavoriteUser = function () { ...@@ -217,6 +238,7 @@ ChatAddUser.appendFavoriteUser = function () {
}; };
ChatAddUser.appendMyGroupList = function () { ChatAddUser.appendMyGroupList = function () {
console.log("peacekim:: ChatAddUser.appendMyGroupList");
const groupUserTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_USER_LIST); const groupUserTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_USER_LIST);
const myGroupList = NativeBridgeDataSource.getMyGroupUsersNotInRoom(); const myGroupList = NativeBridgeDataSource.getMyGroupUsersNotInRoom();
myGroupList.forEach(function (myGroup) { myGroupList.forEach(function (myGroup) {
...@@ -242,6 +264,7 @@ ChatAddUser.appendMyGroupList = function () { ...@@ -242,6 +264,7 @@ ChatAddUser.appendMyGroupList = function () {
}; };
ChatAddUser.refreshAllGroupForAddUser = function (paramGroupId) { ChatAddUser.refreshAllGroupForAddUser = function (paramGroupId) {
console.log("peacekim:: ChatAddUser.refreshAllGroupForAddUser paramGroupID: "+paramGroupID);
$(".cancel").addClass("none"); $(".cancel").addClass("none");
$(".search_form input").removeClass("focus"); $(".search_form input").removeClass("focus");
$(".search_form input").val(""); $(".search_form input").val("");
...@@ -294,6 +317,7 @@ ChatAddUser.refreshAllGroupForAddUser = function (paramGroupId) { ...@@ -294,6 +317,7 @@ ChatAddUser.refreshAllGroupForAddUser = function (paramGroupId) {
}; };
ChatAddUser.initialzScreen = function () { ChatAddUser.initialzScreen = function () {
console.log("peacekim:: ChatAddUser.initialzScreen");
$("#parentGroupBtnForAddUser").off(); $("#parentGroupBtnForAddUser").off();
$("#rootGroupBtnForAddUser").off(); $("#rootGroupBtnForAddUser").off();
$("#childGroupListAreaForAddUser").html(""); $("#childGroupListAreaForAddUser").html("");
...@@ -302,6 +326,7 @@ ChatAddUser.initialzScreen = function () { ...@@ -302,6 +326,7 @@ ChatAddUser.initialzScreen = function () {
}; };
ChatAddUser.appendGroupPath = function (groupPathList) { ChatAddUser.appendGroupPath = function (groupPathList) {
console.log("peacekim:: ChatAddUser.appendGroupPath");
const groupPathTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_PATH); const groupPathTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_PATH);
let groupPathCount = 0; let groupPathCount = 0;
groupPathList.forEach(function (groupPath) { groupPathList.forEach(function (groupPath) {
...@@ -318,6 +343,7 @@ ChatAddUser.appendGroupPath = function (groupPathList) { ...@@ -318,6 +343,7 @@ ChatAddUser.appendGroupPath = function (groupPathList) {
}; };
ChatAddUser.appendGroupInGroup = function (childGroupList) { ChatAddUser.appendGroupInGroup = function (childGroupList) {
console.log("peacekim:: ChatAddUser.appendGroupInGroup");
const groupTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_LIST); const groupTemplate = getTemplate(TemplateURL.ADD_USER_GROUP_LIST);
childGroupList.forEach(function (childGroup) { childGroupList.forEach(function (childGroup) {
...@@ -332,6 +358,7 @@ ChatAddUser.appendGroupInGroup = function (childGroupList) { ...@@ -332,6 +358,7 @@ ChatAddUser.appendGroupInGroup = function (childGroupList) {
}; };
ChatAddUser.appendUserInGroup = function (groupUserList) { ChatAddUser.appendUserInGroup = function (groupUserList) {
console.log("peacekim:: ChatAddUser.appendUserInGroup");
const userTemplate = getTemplate(TemplateURL.ADD_USER_USER_LIST); const userTemplate = getTemplate(TemplateURL.ADD_USER_USER_LIST);
groupUserList.forEach(function (groupUser) { groupUserList.forEach(function (groupUser) {
groupUser.profileUrl = Common.getProfileImgUrl(groupUser.profileUrl); groupUser.profileUrl = Common.getProfileImgUrl(groupUser.profileUrl);
......
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