Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
eaec6be8
Commit
eaec6be8
authored
Aug 03, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add console log for collaboration
parent
859ef75a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
16 deletions
+50
-16
public_new/js/views/collaboration/collaboration-add-user.js
+49
-16
public_new/js/views/collaboration/collaboration.js
+1
-0
No files found.
public_new/js/views/collaboration/collaboration-add-user.js
View file @
eaec6be8
...
@@ -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
(
","
);
...
...
public_new/js/views/collaboration/collaboration.js
View file @
eaec6be8
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment