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 () {
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
(
","
);
...
...
public_new/js/views/collaboration/collaboration.js
View file @
eaec6be8
...
...
@@ -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"
);
...
...
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