Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
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
abook_web
check
Commits
b00b28e6
Commit
b00b28e6
authored
Oct 26, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement message list not found html
parent
2ce6ad94
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
12 deletions
+18
-12
abvw/common/json/lang/lang-en.json
+3
-1
abvw/common/json/lang/lang-ja.json
+3
-1
abvw/common/json/lang/lang-ko.json
+3
-1
abvw/html/push-message-list.html
+2
-2
abvw/js/pushMessageList/push-message-list.js
+7
-7
No files found.
abvw/common/json/lang/lang-en.json
View file @
b00b28e6
...
...
@@ -53,6 +53,7 @@
"distanceSupportTitle"
:
"DistanceSupport"
,
"chatTitle"
:
"Chat"
,
"makeDashboardAsHome"
:
"Make dashboard your home screen"
,
"btnKeep"
:
"Keep"
"btnKeep"
:
"Keep"
,
"messageListEmpty"
:
"No Messages"
}
\ No newline at end of file
abvw/common/json/lang/lang-ja.json
View file @
b00b28e6
...
...
@@ -53,5 +53,6 @@
"distanceSupportTitle"
:
"遠隔支援"
,
"chatTitle"
:
"チャット"
,
"makeDashboardAsHome"
:
"ダッシュボードをホーム画面にする"
,
"btnKeep"
:
"保存"
"btnKeep"
:
"保存"
,
"messageListEmpty"
:
"メッセージがありません。"
}
\ No newline at end of file
abvw/common/json/lang/lang-ko.json
View file @
b00b28e6
...
...
@@ -53,5 +53,6 @@
"distanceSupportTitle"
:
"DistanceSupport"
,
"chatTitle"
:
"Chat"
,
"makeDashboardAsHome"
:
"Make dashboard your home screen"
,
"btnKeep"
:
"Keep"
"btnKeep"
:
"Keep"
,
"messageListEmpty"
:
"No Messages"
}
\ No newline at end of file
abvw/html/push-message-list.html
View file @
b00b28e6
...
...
@@ -50,10 +50,10 @@
<!-- message -->
<ul
class=
"card-list message-list p-0"
id=
"messageList"
>
<li
class=
"card mb-2 not-found"
>
<li
class=
"card mb-2 not-found
d-none
"
>
<div
class=
"text-dark mb-1 px-3 py-5 text-center m-auto"
>
<img
src=
"../common/img/icon_not_found.svg"
alt=
"メッセージがありません。"
class=
"not-found-img mb-2"
>
<div
class=
"fs-9 text-secondary font-weight-bold
"
>
メッセージがありません。
</div>
<div
class=
"fs-9 text-secondary font-weight-bold
lang"
lang=
"messageListEmpty"
>
</div>
</div>
</li>
</ul>
...
...
abvw/js/pushMessageList/push-message-list.js
View file @
b00b28e6
...
...
@@ -6,14 +6,14 @@ var PushMessageList = {};
PushMessageList
.
baseApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'pushMessageList/'
;
/**
* Init
screen
when html onload
* Init when html onload
*/
PushMessageList
.
init
=
function
()
{
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
I18N
.
initi18n
();
});
PushMessageList
.
getMessageList
(
function
(
messageList
)
{
PushMessageList
.
createMessageList
(
messageList
);
PushMessageList
.
generateMessageListHtml
(
messageList
);
});
}
...
...
@@ -31,7 +31,7 @@ PushMessageList.getMessageList = function (callback) {
callback
(
json
);
}
},
function
()
{
console
.
log
(
'PushMessageList.getMessageList'
);
console
.
log
(
'PushMessageList.getMessageList
error
'
);
if
(
callback
)
{
callback
(
PushMessageList
.
dummyMessageList
());
}
...
...
@@ -51,12 +51,12 @@ PushMessageList.clickMessage = function(pushMessageId) {
* @param {array} messageList
* @returns
*/
PushMessageList
.
createMessageList
=
function
(
messageList
)
{
PushMessageList
.
generateMessageListHtml
=
function
(
messageList
)
{
if
(
typeof
messageList
===
'undefined'
||
messageList
.
length
<
1
)
{
//show not found
$
(
'#messageList .not-found'
).
removeClass
(
'd-none'
);
return
;
}
//console.log("messageList.length" + messageList.length);
$
(
'#messageList .not-found'
).
addClass
(
'd-none'
);
for
(
var
i
=
0
;
i
<
messageList
.
length
;
i
++
)
{
let
message
=
messageList
[
i
];
...
...
@@ -101,9 +101,9 @@ PushMessageList.dummyMessageList = function() {
});
messes
.
push
({
pushMessageId
:
2
,
pushMessage
:
'メッセージ内容が入ります。メッセージ内容が入ります。メッセージ内容が入ります。メッセージ内容が入ります。
メッセージ内容が入ります。メッセージ内容が入ります。メッセージ内容が入ります。
'
,
pushMessage
:
'メッセージ内容が入ります。メッセージ内容が入ります。メッセージ内容が入ります。メッセージ内容が入ります。'
,
pushSendDate
:
'xxxxxxxxxxxxxxxxxxxxxxxxxx'
,
operationName
:
'作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。
作業名が入ります。作業名が入ります。
'
,
operationName
:
'作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。作業名が入ります。'
,
readingFlg
:
true
,
});
return
messes
;
...
...
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