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
ed707c97
Commit
ed707c97
authored
Jun 17, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/fix_error_javascript' into 'develop'
スクリプト共通化不具合対応。 See merge request
!183
parents
43895f05
26e3dd3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
public_new/js/chat-add-user.js
+6
-6
public_new/js/chatMakeRoom.js
+3
-4
No files found.
public_new/js/chat-add-user.js
View file @
ed707c97
...
...
@@ -19,17 +19,17 @@ CHAT_ADD_USER.searchUser = function (keyword) {
if
(
isAllGroup
)
{
//グループデータ検索
const
groupList
=
CHAT_DB
.
getGroupByName
(
keyword
);
searchGroupData
(
groupList
);
searchGroupData
(
groupList
,
overlayMessage
);
//ユーザデータ検索
var
userList
=
CHAT_DB
.
getAllGroupShopMemberNotInRoomByName
(
keyword
);
searchUserData
(
userList
);
searchUserData
(
userList
,
overlayMessage
);
hasNoData
=
userList
.
length
==
0
&&
groupList
.
length
==
0
;
//連絡先画面
}
else
{
var
userList
=
CHAT_DB
.
getMyGroupShopMemberNotInRoomByName
(
keyword
);
searchUserData
(
userList
);
searchUserData
(
userList
,
overlayMessage
);
hasNoData
=
userList
.
length
==
0
;
}
// Set NoResult
...
...
@@ -84,7 +84,7 @@ var bindiOSKeyBoardEvent = function () {
});
};
var
searchGroupData
=
function
(
groupList
)
{
var
searchGroupData
=
function
(
groupList
,
overlayMessage
)
{
const
groupTemplate
=
getTemplate
(
TemplateURL
.
MAKE_ROOM_GROUP_LIST
);
groupList
.
forEach
(
function
(
group
)
{
...
...
@@ -106,8 +106,8 @@ var renderGroupTemplate = function (groupTemplate, groupName, groupID) {
});
};
var
searchUserData
=
function
(
userList
)
{
const
userTemplate
=
getTemplate
(
TemplateURL
.
MAKE_ROOM_
GROUP
_LIST
);
var
searchUserData
=
function
(
userList
,
overlayMessage
)
{
const
userTemplate
=
getTemplate
(
TemplateURL
.
MAKE_ROOM_
USER
_LIST
);
userList
.
forEach
(
function
(
user
)
{
setUserProfile
(
user
);
checkUser
(
user
);
...
...
public_new/js/chatMakeRoom.js
View file @
ed707c97
...
...
@@ -23,8 +23,7 @@ CHAT_MAKE_ROOM.searchUser = function (keyword) {
var
groupTemplate
=
getTemplate
(
TemplateURL
.
MAKE_ROOM_GROUP_LIST
);
groupList
.
forEach
(
function
(
group
)
{
renderRoomList
(
groupTemplate
,
group
.
groupName
,
group
.
groupId
);
let
html
=
renderRoomList
(
groupTemplate
,
group
.
groupName
,
group
.
groupId
);
let
obj
=
jQuery
.
parseHTML
(
html
);
overlayMessage
.
append
(
obj
);
});
...
...
@@ -40,7 +39,7 @@ CHAT_MAKE_ROOM.searchUser = function (keyword) {
//連絡先画面
}
else
{
const
userList
=
CHAT_DB
.
getMyGroupShopMemberByName
(
keyword
);
searchUserData
();
searchUserData
(
userList
);
var
userTemplate
=
getTemplate
(
TemplateURL
.
MAKE_ROOM_USER_LIST
);
let
html
=
renderUser
(
userTemplate
,
userList
);
let
obj
=
jQuery
.
parseHTML
(
html
);
...
...
@@ -64,11 +63,11 @@ var searchMember = function () {
$
(
"#makeRoomTitle"
).
text
(
contactListTitle
);
});
searchInput
.
keyup
(
function
(
e
)
{
var
keyword
=
searchInput
.
val
();
const
enterKeyPressed
=
e
.
KeyCode
==
13
||
e
.
key
==
"Enter"
;
const
keywordEmpty
=
keyword
==
""
||
keyword
.
length
<
2
;
const
keywordNotEmpty
=
keyword
!=
""
&&
keyword
.
length
!=
0
;
//画面タイトル設定
var
keyword
=
searchInput
.
val
();
if
(
enterKeyPressed
)
{
if
(
keywordNotEmpty
)
{
searchInput
.
blur
();
...
...
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