Commit 5a8177d7 by NGUYEN HOANG SON

fix confirm modal logout

parent e511043b
......@@ -37,11 +37,12 @@ HEADER.goToHomePage = function (pageId) {
*/
HEADER.logoutFunction = function () {
console.log('clicked logout');
$('#modalTitle').text(I18N.i18nText("confirmation"));
$('#msgModel').text(I18N.i18nText('msgLogoutConfirm'));
$('#confirmYes').show();
$('#confirmYes').click(HEADER.processLogout);
$('#confirmNo').text(I18N.i18nText("confirmNo"));
COMMON.showConfirm('msgLogoutConfirm', HEADER.processLogout);
// $('#modalTitle').text(I18N.i18nText("confirmation"));
// $('#msgModel').text(I18N.i18nText('msgLogoutConfirm'));
// $('#confirmYes').show();
// $('#confirmYes').click(HEADER.processLogout);
// $('#confirmNo').text(I18N.i18nText("confirmNo"));
};
/**
......
......@@ -26,20 +26,21 @@ PushMessageDetail.init = function () {
COMMON.checkAuth(false);
//load common html
TEMPLATE.loadHeader('#includedHeader');
TEMPLATE.loadConfirmModal();
const navs = [
{
titleLang: 'dashboard',
href: 'dashboard.html',
},
{
titleLang: 'messageListTitle',
titleLang: 'pushMessageList',
href: 'pushMessageList.html',
},
{
titleLang: 'messageDetail',
titleLang: 'pushMessageDetail',
},
];
TEMPLATE.loadMainNavsTitle('#includedMainTitle', 'messageDetail', navs, null);
TEMPLATE.loadMainNavsTitle('#includedMainTitle', 'pushMessageDetail', navs, null);
//request message detail data
let urlParam = COMMON.getUrlParameter();
if (typeof urlParam !== 'object' || typeof urlParam.pushMessageId === 'undefined') {
......
......@@ -12,6 +12,7 @@ PushMessageList.init = function () {
//Check if user is logged in
COMMON.checkAuth(false);
TEMPLATE.loadHeader('#includedHeader');
TEMPLATE.loadConfirmModal();
const navs = [
{
titleLang: 'dashboard',
......
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