Commit eaec6be8 by Kim Peace

Add console log for collaboration

parent 859ef75a
...@@ -2,7 +2,9 @@ CollaborationUI.initialBindAddUserButton = function () { ...@@ -2,7 +2,9 @@ CollaborationUI.initialBindAddUserButton = function () {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton"); console.log("peacekim:: CollaborationUI.initialBindAddUserButton");
// ユーザー招待メンバー検索 // ユーザー招待メンバー検索
$(".add_user_btn").click(function () { $(".add_user_btn").click(function () {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton add_user_btn clicked"); console.log(
"peacekim:: CollaborationUI.initialBindAddUserButton add_user_btn clicked"
);
CollaborationUI.bindEnableScroll(); CollaborationUI.bindEnableScroll();
Common.showLoadingIndicator(); Common.showLoadingIndicator();
ChatManagementCommon.selectedUserList = []; ChatManagementCommon.selectedUserList = [];
...@@ -10,8 +12,13 @@ CollaborationUI.initialBindAddUserButton = function () { ...@@ -10,8 +12,13 @@ CollaborationUI.initialBindAddUserButton = function () {
$("#addUserConfirmBtnInCollaboration") $("#addUserConfirmBtnInCollaboration")
.off() .off()
.on("click", function () { .on("click", function () {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton addUserConfirmBtnInCollaboration clicked");
$("#addUserInCollaboration").modal("hide"); $("#addUserInCollaboration").modal("hide");
console.log(
"peacekim:: CollaborationUI.initialBindAddUserButton addUserConfirmBtnInCollaboration clicked ChatManagementCommon.selectedUserList: " +
ChatManagementCommon.selectedUserList
);
const selectedUserList = const selectedUserList =
ChatManagementCommon.selectedUserList.join(","); ChatManagementCommon.selectedUserList.join(",");
NativeBridgeDelegate.saveSelectedUserList(selectedUserList); NativeBridgeDelegate.saveSelectedUserList(selectedUserList);
...@@ -21,17 +28,23 @@ CollaborationUI.initialBindAddUserButton = function () { ...@@ -21,17 +28,23 @@ CollaborationUI.initialBindAddUserButton = function () {
}; };
$("#tabMyGroupOnAddUserInCollaboration").on("click", function (e) { $("#tabMyGroupOnAddUserInCollaboration").on("click", function (e) {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton tabMyGroupOnAddUserInCollaboration clicked"); console.log(
"peacekim:: CollaborationUI.initialBindAddUserButton tabMyGroupOnAddUserInCollaboration clicked"
);
CollaborationUI.refreshMyGroupForAddUserInCollaboration(); CollaborationUI.refreshMyGroupForAddUserInCollaboration();
}); });
$("#tabAllGroupOnAddUserInCollaboration").on("click", function (e) { $("#tabAllGroupOnAddUserInCollaboration").on("click", function (e) {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton tabAllGroupOnAddUserInCollaboration clicked"); console.log(
"peacekim:: CollaborationUI.initialBindAddUserButton tabAllGroupOnAddUserInCollaboration clicked"
);
CollaborationUI.refreshAllGroupForAddUserInCollaboration("0"); CollaborationUI.refreshAllGroupForAddUserInCollaboration("0");
}); });
CollaborationUI.refreshMyGroupForAddUserInCollaboration = function () { CollaborationUI.refreshMyGroupForAddUserInCollaboration = function () {
console.log("peacekim:: CollaborationUI.initialBindAddUserButton refreshMyGroupForAddUserInCollaboration"); console.log(
"peacekim:: CollaborationUI.initialBindAddUserButton refreshMyGroupForAddUserInCollaboration"
);
if (ChatManagementCommon.selectedUserList.length > 0) { if (ChatManagementCommon.selectedUserList.length > 0) {
$(".select_member_num").text(ChatManagementCommon.selectedUserList.length); $(".select_member_num").text(ChatManagementCommon.selectedUserList.length);
} else { } else {
...@@ -128,7 +141,9 @@ CollaborationUI.appendMyGroupList = function () { ...@@ -128,7 +141,9 @@ CollaborationUI.appendMyGroupList = function () {
}; };
CollaborationUI.refreshAllGroupForAddUserInCollaboration = function (groupID) { CollaborationUI.refreshAllGroupForAddUserInCollaboration = function (groupID) {
console.log("peacekim:: CollaborationUI.refreshAllGroupForAddUserInCollaboration"); console.log(
"peacekim:: CollaborationUI.refreshAllGroupForAddUserInCollaboration"
);
$(".content").removeClass("none"); $(".content").removeClass("none");
$("#tabAllGroupOnAddUserInCollaboration").prop("checked", true); $("#tabAllGroupOnAddUserInCollaboration").prop("checked", true);
...@@ -165,7 +180,9 @@ CollaborationUI.refreshAllGroupForAddUserInCollaboration = function (groupID) { ...@@ -165,7 +180,9 @@ CollaborationUI.refreshAllGroupForAddUserInCollaboration = function (groupID) {
CollaborationUI.bindOnClickParentGroup = function (parentGroupID) { CollaborationUI.bindOnClickParentGroup = function (parentGroupID) {
console.log("peacekim:: CollaborationUI.bindOnClickParentGroup"); console.log("peacekim:: CollaborationUI.bindOnClickParentGroup");
$("#parentGroupBtnForAddUserInCollaboration").on("click", function () { $("#parentGroupBtnForAddUserInCollaboration").on("click", function () {
console.log("peacekim:: CollaborationUI.bindOnClickParentGroup parentGroupBtnForAddUserInCollaboration clicked"); console.log(
"peacekim:: CollaborationUI.bindOnClickParentGroup parentGroupBtnForAddUserInCollaboration clicked"
);
CollaborationUI.refreshAllGroupForAddUserInCollaboration(parentGroupID); CollaborationUI.refreshAllGroupForAddUserInCollaboration(parentGroupID);
}); });
}; };
...@@ -173,7 +190,9 @@ CollaborationUI.bindOnClickParentGroup = function (parentGroupID) { ...@@ -173,7 +190,9 @@ CollaborationUI.bindOnClickParentGroup = function (parentGroupID) {
CollaborationUI.bindOnClickRootGroup = function (rootGroupID) { CollaborationUI.bindOnClickRootGroup = function (rootGroupID) {
console.log("peacekim:: CollaborationUI.bindOnClickRootGroup"); console.log("peacekim:: CollaborationUI.bindOnClickRootGroup");
$("#rootGroupBtnForAddUserInCollaboration").on("click", function () { $("#rootGroupBtnForAddUserInCollaboration").on("click", function () {
console.log("peacekim:: CollaborationUI.bindOnClickRootGroup rootGroupBtnForAddUserInCollaboration clicked"); console.log(
"peacekim:: CollaborationUI.bindOnClickRootGroup rootGroupBtnForAddUserInCollaboration clicked"
);
CollaborationUI.refreshAllGroupForAddUserInCollaboration(rootGroupID); CollaborationUI.refreshAllGroupForAddUserInCollaboration(rootGroupID);
}); });
}; };
...@@ -182,7 +201,9 @@ CollaborationUI.displayRootGroupAndParentGroupIfNeeded = function ( ...@@ -182,7 +201,9 @@ CollaborationUI.displayRootGroupAndParentGroupIfNeeded = function (
rootGroupID, rootGroupID,
groupID groupID
) { ) {
console.log("peacekim:: CollaborationUI.displayRootGroupAndParentGroupIfNeeded"); console.log(
"peacekim:: CollaborationUI.displayRootGroupAndParentGroupIfNeeded"
);
if (typeof rootGroupID !== "undefined" && rootGroupID == 0) { if (typeof rootGroupID !== "undefined" && rootGroupID == 0) {
groupID = rootGroupID; groupID = rootGroupID;
} }
...@@ -197,7 +218,9 @@ CollaborationUI.displayRootGroupAndParentGroupIfNeeded = function ( ...@@ -197,7 +218,9 @@ CollaborationUI.displayRootGroupAndParentGroupIfNeeded = function (
}; };
CollaborationUI.appendGroupPath = function (groupPathList) { CollaborationUI.appendGroupPath = function (groupPathList) {
console.log("peacekim:: CollaborationUI.appendGroupPath groupPathList: "+ groupPathList); console.log(
"peacekim:: CollaborationUI.appendGroupPath groupPathList: " + groupPathList
);
const groupPathTemplate = getTemplate( const groupPathTemplate = getTemplate(
TemplateURL.ADD_USER_GROUP_PATH_IN_COLLABORATION TemplateURL.ADD_USER_GROUP_PATH_IN_COLLABORATION
); );
...@@ -217,7 +240,9 @@ CollaborationUI.appendGroupPath = function (groupPathList) { ...@@ -217,7 +240,9 @@ CollaborationUI.appendGroupPath = function (groupPathList) {
}; };
CollaborationUI.appendChildGroups = function (chidGroups) { CollaborationUI.appendChildGroups = function (chidGroups) {
console.log("peacekim:: CollaborationUI.appendChildGroups chidGroups: "+ chidGroups); console.log(
"peacekim:: CollaborationUI.appendChildGroups chidGroups: " + chidGroups
);
const groupTemplate = getTemplate( const groupTemplate = getTemplate(
TemplateURL.ADD_USER_GROUP_LIST_IN_COLLABORATION TemplateURL.ADD_USER_GROUP_LIST_IN_COLLABORATION
); );
...@@ -234,7 +259,7 @@ CollaborationUI.appendChildGroups = function (chidGroups) { ...@@ -234,7 +259,7 @@ CollaborationUI.appendChildGroups = function (chidGroups) {
}; };
CollaborationUI.appendUsers = function (userList) { CollaborationUI.appendUsers = function (userList) {
console.log("peacekim:: CollaborationUI.appendUsers userList: "+ userList); console.log("peacekim:: CollaborationUI.appendUsers userList: " + userList);
const userTemplate = getTemplate( const userTemplate = getTemplate(
TemplateURL.ADD_USER_USER_LIST_IN_COLLABORATION TemplateURL.ADD_USER_USER_LIST_IN_COLLABORATION
); );
...@@ -262,7 +287,9 @@ CollaborationUI.appendRootGroupAndParentGroupIfNeeded = function ( ...@@ -262,7 +287,9 @@ CollaborationUI.appendRootGroupAndParentGroupIfNeeded = function (
parentGroupID, parentGroupID,
groupID groupID
) { ) {
console.log("peacekim:: CollaborationUI.appendRootGroupAndParentGroupIfNeeded"); console.log(
"peacekim:: CollaborationUI.appendRootGroupAndParentGroupIfNeeded"
);
if (typeof parentGroupID !== "undefined") { if (typeof parentGroupID !== "undefined") {
CollaborationUI.bindOnClickParentGroup(parentGroupID); CollaborationUI.bindOnClickParentGroup(parentGroupID);
} }
...@@ -275,7 +302,9 @@ CollaborationUI.appendRootGroupAndParentGroupIfNeeded = function ( ...@@ -275,7 +302,9 @@ CollaborationUI.appendRootGroupAndParentGroupIfNeeded = function (
}; };
CollaborationUI.confirmInviteUserListInCollaboration = function () { CollaborationUI.confirmInviteUserListInCollaboration = function () {
console.log("peacekim:: CollaborationUI.confirmInviteUserListInCollaboration"); console.log(
"peacekim:: CollaborationUI.confirmInviteUserListInCollaboration"
);
const selectedUsers = NativeBridgeDataSource.loadSelectedUsers(); const selectedUsers = NativeBridgeDataSource.loadSelectedUsers();
if (selectedUsers != "") { if (selectedUsers != "") {
$("#selectedUserListinCollaboration").html(""); $("#selectedUserListinCollaboration").html("");
...@@ -304,7 +333,9 @@ CollaborationUI.bindCancelAddUserButton = function () { ...@@ -304,7 +333,9 @@ CollaborationUI.bindCancelAddUserButton = function () {
$("#cancelAddUserBtn") $("#cancelAddUserBtn")
.off() .off()
.on("click", function () { .on("click", function () {
console.log("peacekim:: CollaborationUI.bindCancelAddUserButton cancelAddUserBtn clicked"); console.log(
"peacekim:: CollaborationUI.bindCancelAddUserButton cancelAddUserBtn clicked"
);
$("#modalAddUserConfirm").modal("hide"); $("#modalAddUserConfirm").modal("hide");
$("#addUserInCollaboration").modal("show"); $("#addUserInCollaboration").modal("show");
}); });
...@@ -315,7 +346,9 @@ CollaborationUI.bindAddUserButton = function (selectedUsers) { ...@@ -315,7 +346,9 @@ CollaborationUI.bindAddUserButton = function (selectedUsers) {
$("#addUserBtn") $("#addUserBtn")
.off() .off()
.on("click", function () { .on("click", function () {
console.log("peacekim:: CollaborationUI.bindAddUserButton addUserBtn clicked"); console.log(
"peacekim:: CollaborationUI.bindAddUserButton addUserBtn clicked"
);
Common.showLoadingIndicator(); Common.showLoadingIndicator();
let userIDList = selectedUsers.map((user) => user.shopMemberId); let userIDList = selectedUsers.map((user) => user.shopMemberId);
const commaJoinedUserIDList = userIDList.join(","); const commaJoinedUserIDList = userIDList.join(",");
......
...@@ -73,6 +73,7 @@ CollaborationUI.bindChangeHostButton = function () { ...@@ -73,6 +73,7 @@ CollaborationUI.bindChangeHostButton = function () {
}; };
CollaborationUI.bindCloseButton = function () { CollaborationUI.bindCloseButton = function () {
console.log("peacekim:: CollaborationUI.bindCloseButton");
$(".close_btn").click(function () { $(".close_btn").click(function () {
$("#add_user_list").addClass("none"); $("#add_user_list").addClass("none");
$(".modal-backdrop").addClass("none"); $(".modal-backdrop").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