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
69c96185
Commit
69c96185
authored
Jun 11, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed for some js bug
- could not found js file - could not found CHAT_UI.refreshArchiveScreen method
parent
d12c2257
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
0 deletions
+59
-0
public_new/archive.html
+1
-0
public_new/archive_detail.html
+1
-0
public_new/chat_add_user.html
+1
-0
public_new/chat_add_user_confirm.html
+1
-0
public_new/js/chat-ui.js
+55
-0
No files found.
public_new/archive.html
View file @
69c96185
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db-foriOS.js"
></script>
<script
id=
"archive-template"
type=
"text/template"
>
<script
id=
"archive-template"
type=
"text/template"
>
<
li
class
=
"d-flex align-items-center"
>
<
li
class
=
"d-flex align-items-center"
>
...
...
public_new/archive_detail.html
View file @
69c96185
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db-foriOS.js"
></script>
<script
id=
"archive-detail-template"
type=
"text/template"
>
<script
id=
"archive-detail-template"
type=
"text/template"
>
<
div
id
=
"archive_player"
class
=
"player"
>
<
div
id
=
"archive_player"
class
=
"player"
>
...
...
public_new/chat_add_user.html
View file @
69c96185
...
@@ -142,6 +142,7 @@
...
@@ -142,6 +142,7 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db-foriOS.js"
></script>
<script
src=
"./js/chat-add-user.js"
></script>
<script
src=
"./js/chat-add-user.js"
></script>
<script>
<script>
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
...
...
public_new/chat_add_user_confirm.html
View file @
69c96185
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db-foriOS.js"
></script>
<script>
<script>
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
return
this
.
split
(
org
).
join
(
dest
);
return
this
.
split
(
org
).
join
(
dest
);
...
...
public_new/js/chat-ui.js
View file @
69c96185
...
@@ -1963,6 +1963,61 @@ CHAT_UI.checkForMakeChat = function (checkMemberId) {
...
@@ -1963,6 +1963,61 @@ CHAT_UI.checkForMakeChat = function (checkMemberId) {
}
}
};
};
// アーカイブ一覧
CHAT_UI
.
refreshArchiveScreen
=
function
()
{
// loadingIndicatorを表示
CHAT_UI
.
showLoadingIndicator
();
// 初期化
$
(
"#archiveList"
).
html
(
""
);
// アーカイブの様式を読み込む
const
archiveTemplate
=
$
(
"#archive-template"
).
html
();
// アーカイブ一覧取得
if
(
IS_ONLINE
==
"true"
)
{
CHAT_DB
.
updateArchiveList
();
}
// ローカルDBのデータを表示
var
archiveList
=
CHAT_DB
.
getArchiveList
();
if
(
typeof
archiveList
==
"undefined"
)
{
CHAT_UI
.
dismissLoadingIndicator
();
return
;
}
archiveList
.
forEach
(
function
(
archive
)
{
var
typeImage
=
""
;
switch
(
archive
.
archiveType
)
{
case
0
:
// 画像
typeImage
=
"icon/icon_collabo_picture.png"
;
break
;
case
1
:
// 動画
typeImage
=
"icon/icon_collabo_videocam.png"
;
break
;
case
2
:
// 音声
typeImage
=
"icon/icon_collabo_headset.png"
;
break
;
case
3
:
// 文書
typeImage
=
"icon/icon_collabo_document.png"
;
break
;
default
:
// その他
typeImage
=
""
;
}
let
html
=
Mustache
.
render
(
archiveTemplate
,
{
archiveId
:
archive
.
archiveId
,
fileName
:
archive
.
archiveName
,
insertDate
:
archive
.
archiveDate
,
typeImage
:
typeImage
,
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{});
$
(
"#archiveList"
).
append
(
obj
);
});
// loadingIndicatorを非表示
CHAT_UI
.
dismissLoadingIndicator
();
};
CHAT_UI
.
showMakeRoomConfirmView
=
function
()
{
CHAT_UI
.
showMakeRoomConfirmView
=
function
()
{
$
(
"#selectedUserList"
).
html
(
""
);
$
(
"#selectedUserList"
).
html
(
""
);
...
...
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