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
5a808744
Commit
5a808744
authored
Apr 02, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
検索画面でチェックロジック修正
parent
5ac1daad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
17 deletions
+5
-17
public_new/chat_make_room.html
+1
-1
public_new/js/chat-ui.js
+3
-6
public_new/js/chat.js
+0
-9
public_new/template/template_make_room_group_user_list.html
+1
-1
No files found.
public_new/chat_make_room.html
View file @
5a808744
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</div>
</div>
</div>
</div>
<div
class=
"chat_make_room"
>
<div
class=
"chat_make_room"
>
<ul
class=
"overlay_src_msg"
>
<ul
class=
"overlay_src_msg"
style=
"padding-inline-start: 20px;"
>
</ul>
</ul>
</div>
</div>
...
...
public_new/js/chat-ui.js
View file @
5a808744
...
@@ -1826,7 +1826,6 @@ CHAT_UI.refreshAllGroupForMakeRoom = function(groupId) {
...
@@ -1826,7 +1826,6 @@ CHAT_UI.refreshAllGroupForMakeRoom = function(groupId) {
};
};
CHAT_UI
.
checkForMakeChat
=
function
(
checkMemberId
)
{
CHAT_UI
.
checkForMakeChat
=
function
(
checkMemberId
)
{
var
nameInfo
=
CHAT_DB
.
getNameCardData
(
checkMemberId
);
let
findObj
=
CHAT
.
globalSelectedUserList
.
find
(
function
(
shopMemberId
)
{
let
findObj
=
CHAT
.
globalSelectedUserList
.
find
(
function
(
shopMemberId
)
{
return
shopMemberId
==
checkMemberId
;
return
shopMemberId
==
checkMemberId
;
})
})
...
@@ -1837,13 +1836,12 @@ CHAT_UI.checkForMakeChat = function(checkMemberId) {
...
@@ -1837,13 +1836,12 @@ CHAT_UI.checkForMakeChat = function(checkMemberId) {
});
});
}
else
{
}
else
{
// add
// add
CHAT
.
globalSelectedUserList
.
push
(
nameInfo
.
shop
MemberId
);
CHAT
.
globalSelectedUserList
.
push
(
check
MemberId
);
}
}
if
(
$
(
'.checkbox'
+
checkMemberId
).
prop
(
'checked'
)){
if
(
$
(
'.checkbox'
+
checkMemberId
).
prop
(
'checked'
)){
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
}
else
{
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
}
}
let
cnt
=
CHAT
.
globalSelectedUserList
.
length
;
let
cnt
=
CHAT
.
globalSelectedUserList
.
length
;
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
...
@@ -1864,7 +1862,6 @@ CHAT_UI.showMakeRoomConfirmView = function() {
...
@@ -1864,7 +1862,6 @@ CHAT_UI.showMakeRoomConfirmView = function() {
var
selectedUserList
=
CHAT_DB
.
loadSelectedUsers
();
var
selectedUserList
=
CHAT_DB
.
loadSelectedUsers
();
console
.
log
(
"check = "
+
selectedUserList
);
selectedUserList
.
forEach
(
function
(
user
){
selectedUserList
.
forEach
(
function
(
user
){
let
html
=
Mustache
.
render
(
userTemplate
,
{
let
html
=
Mustache
.
render
(
userTemplate
,
{
id
:
user
.
shopMemberId
,
id
:
user
.
shopMemberId
,
...
...
public_new/js/chat.js
View file @
5a808744
...
@@ -326,15 +326,6 @@ $(function() {
...
@@ -326,15 +326,6 @@ $(function() {
let
roomListTitle
=
getLocalizedString
(
"roomListTitle"
);
let
roomListTitle
=
getLocalizedString
(
"roomListTitle"
);
$
(
'#chatTitle'
).
text
(
roomListTitle
);
$
(
'#chatTitle'
).
text
(
roomListTitle
);
});
});
$
(
'#chatMakeRoom .search_form .cancel'
).
click
(
function
(){
CHAT
.
globalSelectedUserList
.
forEach
(
function
(
userId
)
{
if
(
$
(
'.checkbox'
+
userId
).
prop
(
'checked'
))
{
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
}
});
});
// チャットメンバー検索
// チャットメンバー検索
$
(
'#chat .search_form input[type="search"]'
).
keyup
(
function
(){
$
(
'#chat .search_form input[type="search"]'
).
keyup
(
function
(){
...
...
public_new/template/template_make_room_group_user_list.html
View file @
5a808744
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"chat_item_l_chk"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input"
onchange=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input
checkbox{{shopMemberId}}
"
onchange=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<span
class=
"checkbox-parts"
></span>
<span
class=
"checkbox-parts"
></span>
</label>
</label>
</div>
</div>
...
...
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