Commit bfd04ce8 by NGUYEN HOANG SON

#49154 implement refresh push message list

parent b491f777
...@@ -10,9 +10,11 @@ CHK_MessageList.init = function() { ...@@ -10,9 +10,11 @@ CHK_MessageList.init = function() {
CHK_Footer.activeDashboardBottomNav(); CHK_Footer.activeDashboardBottomNav();
}); });
//CHK_MessageList.createMessageList(CHK_MessageList.dummyMessageList()); //CHK_MessageList.createMessageList(CHK_MessageList.dummyMessageList());
CHK.loadJson(CHK.jsonPath.pushMessageList, function (json) { CHK.initPushMessageList();
CHK_MessageList.createMessageList(json.pushMessageList); }
});
CHK_MessageList.initPushMessageListCallback = function(pushMessageList) {
CHK_MessageList.createMessageList(pushMessageList);
} }
CHK_MessageList.goBack = function() { CHK_MessageList.goBack = function() {
...@@ -20,7 +22,7 @@ CHK_MessageList.goBack = function() { ...@@ -20,7 +22,7 @@ CHK_MessageList.goBack = function() {
} }
CHK_MessageList.refresh = function() { CHK_MessageList.refresh = function() {
CHK_MessageList.init(); CHK.sendAppCommand('refreshContent');
} }
CHK_MessageList.clickMessage = function(pushMessageId) { CHK_MessageList.clickMessage = function(pushMessageId) {
......
...@@ -565,6 +565,9 @@ CHK.initPushMessageList = function() { ...@@ -565,6 +565,9 @@ CHK.initPushMessageList = function() {
CHK_Dashboard.updateDataCommunications(); CHK_Dashboard.updateDataCommunications();
CHK_Dashboard.initCommunications(); CHK_Dashboard.initCommunications();
} }
if (typeof CHK_MessageList !== 'undefined') {
CHK_MessageList.initPushMessageListCallback(CHK.pushMessageList);
}
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment