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
6802b30c
Commit
6802b30c
authored
May 26, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CoviewAPIのLoginId修正対応。
parent
019a8683
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
public_new/collaboration.html
+4
-0
public_new/js/chat-ui.js
+5
-0
public_new/js/share.js
+16
-8
No files found.
public_new/collaboration.html
View file @
6802b30c
...
@@ -225,6 +225,10 @@
...
@@ -225,6 +225,10 @@
}
}
}
}
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
return
this
.
split
(
org
).
join
(
dest
);
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
CHAT_SERVER_URL
=
chatServerUrl
;
CHAT_SERVER_URL
=
chatServerUrl
;
CMS_SERVER_URL
=
cmsServerUrl
;
CMS_SERVER_URL
=
cmsServerUrl
;
...
...
public_new/js/chat-ui.js
View file @
6802b30c
...
@@ -2509,6 +2509,11 @@ CHAT_UI.startCollaboration = function(collaborationType) {
...
@@ -2509,6 +2509,11 @@ CHAT_UI.startCollaboration = function(collaborationType) {
CHAT_UI
.
refreshJoinedCollaboration
=
function
(
loginIdList
)
{
CHAT_UI
.
refreshJoinedCollaboration
=
function
(
loginIdList
)
{
for
(
var
count
=
0
;
count
<
loginIdList
.
length
;
count
++
)
{
loginIdList
[
count
]
=
loginIdList
[
count
].
replaceAll
(
globalUserInfo
.
shopName
+
'_'
,
''
);
}
CHAT_UI
.
showLoadingIndicator
();
CHAT_UI
.
showLoadingIndicator
();
$
(
'#collaboration_overlay_user_list'
).
html
(
''
);
$
(
'#collaboration_overlay_user_list'
).
html
(
''
);
...
...
public_new/js/share.js
View file @
6802b30c
...
@@ -165,7 +165,7 @@ $(function () {
...
@@ -165,7 +165,7 @@ $(function () {
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
}
}
}
else
if
(
data
.
type
===
"HOST_CHANGE_REQUEST"
)
{
}
else
if
(
data
.
type
===
"HOST_CHANGE_REQUEST"
)
{
if
(
data
.
payload
.
loginId
==
CHAT
.
globalLoginParameter
.
loginId
)
{
if
(
data
.
payload
.
loginId
==
globalUserInfo
.
loginId
)
{
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_RESPONSE'
,
{
"isAndroid"
:
CHAT_UTIL
.
isAndroid
(),
"isAble"
:
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
"loginId"
:
CHAT
.
globalLoginParameter
.
loginId
});
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_RESPONSE'
,
{
"isAndroid"
:
CHAT_UTIL
.
isAndroid
(),
"isAble"
:
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
"loginId"
:
CHAT
.
globalLoginParameter
.
loginId
});
}
}
}
else
if
(
data
.
type
===
"HOST_CHANGE_RESPONSE"
)
{
}
else
if
(
data
.
type
===
"HOST_CHANGE_RESPONSE"
)
{
...
@@ -174,7 +174,7 @@ $(function () {
...
@@ -174,7 +174,7 @@ $(function () {
if
(
g_isMainMan
&&
isAndroid
&&
!
isAble
&&
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
g_isMainMan
&&
isAndroid
&&
!
isAble
&&
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
alert
(
getLocalizedString
(
'err_target_android_version_not_support'
));
alert
(
getLocalizedString
(
'err_target_android_version_not_support'
));
}
else
{
}
else
{
Coview_changeHost
(
data
.
payload
.
loginId
);
Coview_changeHost
(
getFermiLoginId
(
data
.
payload
.
loginId
)
);
}
}
}
else
if
(
data
.
type
===
"API_SEND_OWNER_CHANGE_COMPLETE"
)
{
}
else
if
(
data
.
type
===
"API_SEND_OWNER_CHANGE_COMPLETE"
)
{
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
...
@@ -183,7 +183,7 @@ $(function () {
...
@@ -183,7 +183,7 @@ $(function () {
penOff
();
penOff
();
}
else
if
(
data
.
type
===
"CHANGE_HOST_APPLY"
)
{
}
else
if
(
data
.
type
===
"CHANGE_HOST_APPLY"
)
{
if
(
confirm
(
getLocalizedString
(
'norify_request_host_change'
,
data
.
payload
.
hostId
)))
{
if
(
confirm
(
getLocalizedString
(
'norify_request_host_change'
,
data
.
payload
.
hostId
)))
{
Coview_changeHost
(
data
.
payload
.
hostId
);
Coview_changeHost
(
getFermiLoginId
(
data
.
payload
.
hostId
)
);
}
}
}
}
});
});
...
@@ -598,9 +598,9 @@ function hostSearchInterval() {
...
@@ -598,9 +598,9 @@ function hostSearchInterval() {
}
}
if
(
hostName
!=
g_isMainManUsername
)
{
if
(
hostName
!=
g_isMainManUsername
)
{
if
(
hostName
!=
""
)
{
if
(
hostName
!=
""
)
{
$
(
"#collaboration_user_"
+
hostName
).
removeClass
(
"host"
);
$
(
"#collaboration_user_"
+
getReplacedLoginId
(
hostName
)
).
removeClass
(
"host"
);
}
}
$
(
"#collaboration_user_"
+
g
_isMainManUsername
).
addClass
(
"host"
);
$
(
"#collaboration_user_"
+
g
etReplacedLoginId
(
g_isMainManUsername
)
).
addClass
(
"host"
);
hostName
=
g_isMainManUsername
;
hostName
=
g_isMainManUsername
;
}
else
{
}
else
{
if
(
hostName
==
""
)
{
if
(
hostName
==
""
)
{
...
@@ -608,8 +608,8 @@ function hostSearchInterval() {
...
@@ -608,8 +608,8 @@ function hostSearchInterval() {
$
(
"#collaboration_user_"
+
CHAT
.
globalLoginParameter
.
loginId
).
addClass
(
"host"
);
$
(
"#collaboration_user_"
+
CHAT
.
globalLoginParameter
.
loginId
).
addClass
(
"host"
);
}
}
}
else
{
}
else
{
if
(
!
$
(
"#collaboration_user_"
+
hostName
).
hasClass
(
'host'
))
{
if
(
!
$
(
"#collaboration_user_"
+
getReplacedLoginId
(
hostName
)
).
hasClass
(
'host'
))
{
$
(
"#collaboration_user_"
+
hostName
).
addClass
(
"host"
);
$
(
"#collaboration_user_"
+
getReplacedLoginId
(
hostName
)
).
addClass
(
"host"
);
}
}
}
}
...
@@ -619,7 +619,15 @@ function hostSearchInterval() {
...
@@ -619,7 +619,15 @@ function hostSearchInterval() {
}
}
function
hostChangeRequest
(
loginId
)
{
function
hostChangeRequest
(
loginId
)
{
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_REQUEST'
,
{
"loginId"
:
loginId
});
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_REQUEST'
,
{
"loginId"
:
getFermiLoginId
(
loginId
)});
}
function
getFermiLoginId
(
loginId
)
{
return
globalUserInfo
.
shopName
+
'_'
+
loginId
;
}
function
getReplacedLoginId
(
loginId
)
{
return
loginId
.
replaceAll
(
globalUserInfo
.
shopName
+
'_'
,
''
);
}
}
function
captureAndShareImage
(
urls
,
changeHostName
)
{
function
captureAndShareImage
(
urls
,
changeHostName
)
{
...
...
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