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
73cc17c9
Commit
73cc17c9
authored
Apr 12, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
インデント修正
parent
56f1d9e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
public_new/js/chat-ui.js
+39
-39
No files found.
public_new/js/chat-ui.js
View file @
73cc17c9
...
...
@@ -24,16 +24,16 @@ $(window).on('resize', function() {
$(".chat_list").removeClass("col-6").addClass("col-12");
$(".squareBoxContent span").removeClass("landscape_span");
$(".mesgs").removeClass("landscape_mesgs");
}*/
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
isLandscape
==
true
)
{
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
}
else
if
(
isLandscape
==
false
)
{
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
}
}
$(".mesgs").removeClass("landscape_mesgs");
}*/
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
isLandscape
==
true
)
{
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
}
else
if
(
isLandscape
==
false
)
{
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
}
}
})
// New Room
...
...
@@ -1049,14 +1049,14 @@ CHAT_UI.refreshRoomList = function(roomType) {
// 検索結果がない場合のメッセージを追加
let
emptyListString
=
getLocalizedString
(
"roomListEmptyString"
)
switch
(
roomType
)
{
case
chatRoomType
.
GROUP
:
$
(
'#groupChatList'
).
append
(
`<center class="text-secondary">
${
emptyListString
}
</center>`
);
break
;
case
chatRoomType
.
DM
:
$
(
'#dmChatList'
).
append
(
`<center class="text-secondary">
${
emptyListString
}
</center>`
);
break
;
default
:
}
case
chatRoomType
.
GROUP
:
$
(
'#groupChatList'
).
append
(
`<center class="text-secondary">
${
emptyListString
}
</center>`
);
break
;
case
chatRoomType
.
DM
:
$
(
'#dmChatList'
).
append
(
`<center class="text-secondary">
${
emptyListString
}
</center>`
);
break
;
default
:
}
}
var
template
;
...
...
@@ -1104,14 +1104,14 @@ CHAT_UI.refreshRoomList = function(roomType) {
});
// ルームグループごとに追加。
switch
(
roomType
)
{
case
chatRoomType
.
GROUP
:
$
(
'#groupChatList'
).
append
(
obj
);
break
;
case
chatRoomType
.
DM
:
$
(
'#dmChatList'
).
append
(
obj
);
break
;
default
:
}
case
chatRoomType
.
GROUP
:
$
(
'#groupChatList'
).
append
(
obj
);
break
;
case
chatRoomType
.
DM
:
$
(
'#dmChatList'
).
append
(
obj
);
break
;
default
:
}
});
if
(
CHAT_UI
.
isLandscapeMode
())
{
...
...
@@ -1561,7 +1561,7 @@ CHAT_UI.refreshArchiveScreen = function() {
CHAT_UI
.
dismissLoadingIndicator
();
return
;
}
archiveList
.
forEach
(
function
(
archive
)
{
c
archiveList
.
forEach
(
function
(
archive
)
{
var
typeImage
=
""
;
switch
(
archive
.
archiveType
)
{
case
0
:
// 画像
...
...
@@ -1617,14 +1617,14 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
var
roomId
=
archive
.
roomId
;
var
roomInfo
=
CHAT_DB
.
getChatRoomInfo
(
roomId
);
// アーカイブ情報を表示
// let html = Mustache.render(archiveDetailTemplate, {
//
fileName: archive.archiveName,
//
insertDate: archive.archiveDate,
//
chatRoomName: roomInfo.chatRoomName,
// アーカイブ情報を表示
// let html = Mustache.render(archiveDetailTemplate, {
//
fileName: archive.archiveName,
//
insertDate: archive.archiveDate,
//
chatRoomName: roomInfo.chatRoomName,
// profileImage: "",
// userName: userName
// });
// });
// アーカイブ情報を表示
var
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
...
...
@@ -1699,12 +1699,12 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
// チャットルームへのリンク付け
document
.
getElementById
(
'joinChatRoom'
).
onclick
=
function
()
{
//
socket.emit('joinRoom', roomId, roomInfo.chatRoomName, function () {
//
$('#archive_detail').html('');
//
$('#messages').html('');
//
$('.titleRoomName').text(roomInfo.chatRoomName).data('roomName', roomInfo.chatRoomName);
//
$('#pills-chat-tab').tab('show');
//
});
//
socket.emit('joinRoom', roomId, roomInfo.chatRoomName, function () {
//
$('#archive_detail').html('');
//
$('#messages').html('');
//
$('.titleRoomName').text(roomInfo.chatRoomName).data('roomName', roomInfo.chatRoomName);
//
$('#pills-chat-tab').tab('show');
//
});
console
.
log
(
"遷移"
);
}
...
...
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