Commit eaec6be8 by Kim Peace

Add console log for collaboration

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