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
b2e55c82
Commit
b2e55c82
authored
Apr 08, 2021
by
Lee Daehyun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_sp3' into 'bugFix/ネームカード名前ずれ'
# Conflicts: # public_new/chat_room.html
parents
35c0cc47
e9bfd760
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
public_new/css/chat.css
+2
-0
public_new/js/chat-ui.js
+1
-1
public_new/js/chat.js
+9
-5
No files found.
public_new/css/chat.css
View file @
b2e55c82
...
...
@@ -556,6 +556,7 @@ input[name="tab_item"] {
border-radius
:
8px
;
background-color
:
#ffffff
;
font-size
:
18px
;
word-break
:
break-word
;
}
.room_left-text.latest
.text
,
.room_left-text.latest
.img_wrap
{
...
...
@@ -621,6 +622,7 @@ input[name="tab_item"] {
margin
:
0
;
margin-left
:
80px
;
font-size
:
18px
;
word-break
:
break-word
;
}
/* 吹き出し */
.room_right
.text
::after
{
...
...
public_new/js/chat-ui.js
View file @
b2e55c82
...
...
@@ -1044,7 +1044,7 @@ CHAT_UI.refreshRoomList = function(roomType) {
var
displayMsg
;
//TODO 協業の場合処理追加必要
if
(
room
.
messageType
==
messageType
.
TEXT
||
room
.
messageType
==
messageType
.
TEXT
)
displayMsg
=
room
.
message
;
if
(
room
.
messageType
==
messageType
.
IMAGE
||
room
.
messageType
==
messageType
.
SYSTEM
)
displayMsg
=
getLocalizedString
(
"image"
);
if
(
room
.
messageType
==
messageType
.
IMAGE
||
room
.
messageType
==
messageType
.
VIDEO
)
displayMsg
=
getLocalizedString
(
"image"
);
var
attendUserName
=
[];
room
.
attendUsers
.
forEach
(
function
(
user
)
{
user
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
user
.
profileUrl
);
...
...
public_new/js/chat.js
View file @
b2e55c82
...
...
@@ -135,14 +135,18 @@ CHAT.uploadImage = function(formData) {
}
let
downloadPath
=
CMS_SERVER_URL
+
'/chatapi/file/download?fileName='
+
imageName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
const
aTag
=
$
(
'<a/>'
,
{
id
:
"attachedImages"
})
const
image
=
$
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
});
var
videoSrc
=
CMS_SERVER_URL
+
'/chatapi/file/getImage?fileName='
+
res
.
fileName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
const
totalDiv
=
$
(
'<div/>'
,
{
id
:
"attachedImages"
});
const
videoTag
=
$
(
'<video/>'
,
{
controls
:
"true"
,
width
:
'auto'
,
style
:
'max-width:100%'
});
const
source
=
$
(
'<source/>'
,
{
src
:
videoSrc
});
const
downloadIcon
=
$
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
aTag
.
append
(
image
);
aTag
.
append
(
downloadIcon
);
videoTag
.
append
(
source
);
totalDiv
.
append
(
videoTag
);
totalDiv
.
append
(
downloadIcon
);
let
text
=
aTag
.
prop
(
'outerHTML'
);
let
text
=
totalDiv
.
prop
(
'outerHTML'
);
let
encodedText
try
{
encodedText
=
encodeURIComponent
(
text
)
...
...
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