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
abd71600
Commit
abd71600
authored
Nov 02, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change call push message list init when ready
parent
3e8b4c1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
abvw/html/push-message-list.html
+7
-2
abvw/js/pushMessageList/push-message-list.js
+2
-7
No files found.
abvw/html/push-message-list.html
View file @
abd71600
...
...
@@ -24,12 +24,17 @@
<script
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/template/template.js"
></script>
<script
type=
"text/javascript"
src=
"../js/pushMessageList/push-message-list.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
PushMessageList
.
init
();
});
</script>
</head>
<body
onload=
"PushMessageList.init();"
>
<body>
<!-- header -->
<div
id=
"includedHeader"
></div>
...
...
abvw/js/pushMessageList/push-message-list.js
View file @
abd71600
...
...
@@ -9,9 +9,7 @@ PushMessageList.baseApiUrl = CONSTANT.URL.CMS.BASE + ClientData.userInfo_account
* Init when html onload
*/
PushMessageList
.
init
=
function
()
{
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
I18N
.
initi18n
();
});
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
PushMessageList
.
getMessageList
(
function
(
messageList
)
{
PushMessageList
.
generateMessageListHtml
(
messageList
.
pushMessageList
);
});
...
...
@@ -26,15 +24,12 @@ PushMessageList.getMessageList = function (callback) {
sid
:
COMMON
.
getSid
(),
};
const
url
=
PushMessageList
.
baseApiUrl
;
COMMON
.
cmsAjax
(
url
,
param
,
fals
e
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
tru
e
,
function
(
json
)
{
if
(
callback
)
{
callback
(
json
);
}
},
function
()
{
console
.
log
(
'PushMessageList.getMessageList error'
);
if
(
callback
)
{
callback
(
PushMessageList
.
dummyMessageListJson
);
}
});
};
...
...
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