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
26ed3908
Commit
26ed3908
authored
Apr 09, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ABCOMM-484 [SD] [ユーザー招待画面]の所属グループのアコーディオンアクションができない
parent
65d1b97e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
public_new/js/chat-ui.js
+3
-5
public_new/js/chat.js
+4
-4
public_new/template/template_make_room_group_user_list.html
+3
-3
public_new/template/template_make_room_user_list.html
+2
-2
No files found.
public_new/js/chat-ui.js
View file @
26ed3908
...
...
@@ -1916,15 +1916,13 @@ CHAT_UI.checkForMakeChat = function(checkMemberId) {
CHAT
.
globalSelectedUserList
=
CHAT
.
globalSelectedUserList
.
filter
(
function
(
shopMemberId
)
{
return
checkMemberId
!=
shopMemberId
;
});
$
(
'.checkbox'
+
checkMemberId
).
prop
(
"checked"
,
false
).
trigger
(
"change"
);
}
else
{
// add
CHAT
.
globalSelectedUserList
.
push
(
checkMemberId
);
$
(
'.checkbox'
+
checkMemberId
).
prop
(
"checked"
,
true
).
trigger
(
"change"
);
}
if
(
$
(
'.checkbox'
+
checkMemberId
).
prop
(
'checked'
)){
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
}
let
cnt
=
CHAT
.
globalSelectedUserList
.
length
;
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
$
(
'.select_member_num'
).
text
(
cnt
);
...
...
public_new/js/chat.js
View file @
26ed3908
...
...
@@ -331,12 +331,12 @@ $(function() {
$
(
'#chatTitle'
).
text
(
roomListTitle
);
});
$
(
'#chat_add_user .search_form .cancel'
).
click
(
function
(){
$
(
'#chat_add_user .search_form .cancel'
).
click
(
function
()
{
CHAT
.
globalSelectedUserList
.
forEach
(
function
(
userId
)
{
if
(
$
(
'
.
checkbox'
+
userId
).
prop
(
'checked'
))
{
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
if
(
$
(
'
#
checkbox'
+
userId
).
prop
(
'checked'
))
{
$
(
'.checkbox'
+
userId
).
prop
(
"checked"
,
false
).
trigger
(
"change"
);
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
$
(
'.checkbox'
+
userId
).
prop
(
"checked"
,
true
).
trigger
(
"change"
);
}
});
});
...
...
public_new/template/template_make_room_group_user_list.html
View file @
26ed3908
<div
class=
"category"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<div
class=
"category"
onclick=
"CHAT_UI.toggleCategory(this);"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<ul
class=
"p-0 chat_make_room_list"
>
{{#groupUserList}}
<li
class=
"d-flex align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
onclick=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
hange
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
lick
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<span
class=
"checkbox-parts"
></span>
</label>
</div>
...
...
public_new/template/template_make_room_user_list.html
View file @
26ed3908
<ul
class=
"p-0 chat_make_room_list"
>
{{#userList}}
<li
class=
"d-flex align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
onclick=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
hange
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
lick
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<span
class=
"checkbox-parts"
></span>
</label>
</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