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
254b1548
Commit
254b1548
authored
Apr 15, 2021
by
Takatoshi Miura
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_sp3' into 'origin/#526_myInfo'
# Conflicts: # public_new/js/chat-ui.js
parents
7575eeff
dfe61f51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
53 deletions
+2
-53
public_new/js/chat-ui.js
+2
-22
public_new/js/chat.js
+0
-31
No files found.
public_new/js/chat-ui.js
View file @
254b1548
...
@@ -197,7 +197,7 @@ CHAT_UI.setOrientation = function(isLandscapeMode) {
...
@@ -197,7 +197,7 @@ CHAT_UI.setOrientation = function(isLandscapeMode) {
CHAT_UI
.
sendMessage
=
function
(
e
)
{
CHAT_UI
.
sendMessage
=
function
(
e
)
{
const
messageTextBox
=
$
(
'#messageInput'
);
const
messageTextBox
=
$
(
'#messageInput'
);
const
message
=
messageTextBox
.
val
().
length
>
0
?
encodeURIComponent
(
messageTextBox
.
val
()
+
" "
)
:
""
;
const
message
=
messageTextBox
.
val
().
length
>
0
?
encodeURIComponent
(
messageTextBox
.
val
())
:
""
;
messageTextBox
.
val
(
''
);
messageTextBox
.
val
(
''
);
if
(
message
.
length
>
0
)
{
if
(
message
.
length
>
0
)
{
...
@@ -1137,15 +1137,11 @@ CHAT_UI.joinRoom = function(roomId,roomName) {
...
@@ -1137,15 +1137,11 @@ CHAT_UI.joinRoom = function(roomId,roomName) {
CHAT_UI
.
loadMessages
=
function
(
roomId
,
roomName
)
{
CHAT_UI
.
loadMessages
=
function
(
roomId
,
roomName
)
{
if
(
IS_ONLINE
==
'true'
)
{
if
(
IS_ONLINE
==
'true'
)
{
CHAT_UI
.
refreshForOnline
();
CHAT_UI
.
refreshForOnline
();
CHAT_SOCKET
.
connectSocket
();
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateMessages
(
roomId
);
android
.
updateMessages
(
roomId
);
}
else
{
}
else
{
webkit
.
messageHandlers
.
updateMessages
.
postMessage
({
roomId
});
webkit
.
messageHandlers
.
updateMessages
.
postMessage
({
roomId
});
}
}
socket
.
emit
(
'exitRoom'
,
roomId
);
socket
.
emit
(
'joinRoom'
,
roomId
,
roomName
,
function
()
{
});
}
else
{
}
else
{
CHAT_UI
.
refreshForOffline
();
CHAT_UI
.
refreshForOffline
();
}
}
...
@@ -2169,21 +2165,6 @@ CHAT_UI.refreshMyGroupForAddUser = function() {
...
@@ -2169,21 +2165,6 @@ CHAT_UI.refreshMyGroupForAddUser = function() {
let
obj
=
jQuery
.
parseHTML
(
html
);
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#favoriteListForMakeRoom'
).
append
(
obj
);
$
(
'#favoriteListForMakeRoom'
).
append
(
obj
);
/*favoriteUserList.forEach(function(favoriteUser) {
favoriteUser.profileImagePath = CHAT.getProfileImgUrl(favoriteUser.profileUrl)
let html = Mustache.render(userTemplate, {
shopMemberId: favoriteUser.shopMemberId,
profileImage: favoriteUser.profileImagePath,
name: favoriteUser.shopMemberName,
isFavorite: true
});
let obj = $(jQuery.parseHTML(html)).on('click', function() {
});
$('#favoriteList').append(obj);
})*/
var
myGroupList
=
CHAT_DB
.
getMyGroupUsersNotInRoom
();
var
myGroupList
=
CHAT_DB
.
getMyGroupUsersNotInRoom
();
myGroupList
.
forEach
(
function
(
myGroup
)
{
myGroupList
.
forEach
(
function
(
myGroup
)
{
...
@@ -2218,8 +2199,7 @@ CHAT_UI.refreshForOnline = function() {
...
@@ -2218,8 +2199,7 @@ CHAT_UI.refreshForOnline = function() {
$
(
'.fa-download'
).
show
();
$
(
'.fa-download'
).
show
();
if
(
typeof
$
(
'#roomTitle'
).
val
()
!=
'undefined'
)
{
if
(
typeof
$
(
'#roomTitle'
).
val
()
!=
'undefined'
)
{
CHAT_SOCKET
.
connectSocket
();
CHAT_SOCKET
.
connectSocket
();
socket
.
emit
(
'exitRoom'
,
CHAT
.
globalLoginParameter
.
roomId
);
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
socket
.
emit
(
'joinRoom'
,
CHAT
.
globalLoginParameter
.
roomId
,
CHAT
.
globalLoginParameter
.
roomName
,
function
()
{
});
});
}
}
}
}
...
...
public_new/js/chat.js
View file @
254b1548
...
@@ -242,38 +242,7 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam
...
@@ -242,38 +242,7 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam
languageCode
=
"en"
languageCode
=
"en"
}
}
CHAT_UI
.
htmlElementTextInitialize
(
languageCode
)
CHAT_UI
.
htmlElementTextInitialize
(
languageCode
)
if
(
IS_ONLINE
==
'true'
)
{
socket
.
emit
(
'join'
,
loginParam
,
function
(
err
)
{
if
(
err
)
{
// #36174
$
(
"#customAlertTitle"
).
text
(
err
);
$
(
"#customAlertOk"
).
text
(
getLocalizedString
(
"yesTitle"
));
$
(
'#customAlert'
).
appendTo
(
"body"
).
modal
({
backdrop
:
'static'
,
keyboard
:
false
})
.
on
(
'click'
,
'#customAlertOk'
,
function
(
e
)
{
});
}
else
{
if
(
loginParam
.
roomName
!=
undefined
&&
loginParam
.
roomName
!=
"null"
)
{
$
(
'.titleRoomName'
).
text
(
loginParam
.
roomName
).
data
(
'roomName'
,
loginParam
.
roomName
);
}
else
{
// 設定されていたroomNameがない場合
let
roomListTitle
=
getLocalizedString
(
"roomListTitle"
)
$
(
'.titleRoomName'
).
text
(
roomListTitle
).
data
(
'roomName'
,
roomListTitle
);
}
}
// loadingIndicatorを表示しない
CHAT_UI
.
dismissLoadingIndicator
();
CHAT_UI
.
dismissLoadingIndicator
();
});
}
else
{
// loadingIndicatorを表示しない
CHAT_UI
.
dismissLoadingIndicator
();
}
}
}
CHAT
.
leaveRoom
=
function
()
{
CHAT
.
leaveRoom
=
function
()
{
...
...
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