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