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
4c29f689
Commit
4c29f689
authored
Nov 14, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull commit
parent
1722f5fc
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
132 additions
and
252 deletions
+132
-252
abweb/common/html/header.html
+1
-1
abweb/common/js/header.js
+69
-1
abweb/html/accountSetting.html
+6
-5
abweb/html/index.html
+1
-1
abweb/html/pdfPrint.html
+2
-2
abweb/html/reportList.html
+1
-3
abweb/js/dashboard/dashboard.js
+1
-1
abweb/js/header/header.js
+0
-201
abweb/js/operationList/operationList.js
+4
-1
abweb/js/pdfPrint/pdfPrint.js
+3
-7
abweb/js/pickup/pickup.js
+1
-1
abweb/js/pushMessageDetail/pushMessageDetail.js
+1
-1
abweb/js/pushMessageList/pushMessageList.js
+1
-1
abweb/js/reportForm/reportForm.js
+2
-7
abweb/js/reportList/reportList.js
+24
-10
abweb/js/sendMessage/sendMessage.js
+1
-1
abweb/js/setting/settings.js
+12
-7
abweb/js/template/template.js
+2
-1
No files found.
abweb/common/html/header.html
View file @
4c29f689
...
...
@@ -30,7 +30,7 @@
<img
src=
"../common/img/menu_icon_account_setting.svg"
type=
"image"
alt=
""
class=
"navbar-dropdown-icon lang"
lang=
"account_setting"
>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"account_setting"
></span>
</a>
<a
class=
"dropdown-item "
href=
"
login.html"
id=
"btnLogout"
>
<a
class=
"dropdown-item "
href=
"
#"
data-toggle=
"modal"
data-target=
"#confirm-modal"
id=
"btnLogout"
>
<img
src=
"../common/img/menu_icon_logout.svg"
type=
"image"
alt=
""
class=
"navbar-dropdown-icon lang"
lang=
"dspLogout"
>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"dspLogout"
></span>
</a>
...
...
abweb/common/js/header.js
View file @
4c29f689
...
...
@@ -12,9 +12,77 @@ $(function () {
HEADER
.
init
=
function
()
{
$
(
"#dspLoginId"
).
text
(
ClientData
.
userInfo_loginId
());
HEADER
.
urlTree
();
};
HEADER
.
initLogout
=
function
()
{
$
(
"#btnLogout"
).
click
(
HEADER
.
logoutFunction
);
};
}
/**
* create url tree & show breadcrumbs list
*/
HEADER
.
urlTree
=
function
()
{
const
pathName
=
location
.
pathname
;
const
htmlName
=
pathName
.
substring
(
pathName
.
indexOf
(
'/'
)
+
1
);
console
.
log
(
"kdh check pathName : "
+
pathName
);
console
.
log
(
"kdh check htmlName : "
+
htmlName
);
//now url tree
let
urlTree
=
sessionStorage
.
getItem
(
'urlTree'
);
console
.
log
(
"kdh check urlTree : "
+
urlTree
);
// check auth
let
authFlg
=
false
;
if
((
!
urlTree
&&
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
)
||
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
)
{
authFlg
=
true
;
session
.
removeItem
(
'urlTree'
);
}
// urlList: for (const i in urlTree) {
// const urlHtmlName = urlTree[i].substring(0, pathName.indexOf('?'));
// findUrl: for (const passList in CONSTANT.URL_TREE_PASS) {
// for (const k in passList) {
// if (urlHtmlName == passList[k]) {
// if (htmlName == passList[k]) {
// authFlg = true;
// break urlList;
// }
// break;
// } else {
// break findUrl;
// }
// }
// }
// }
// return ;
// if (authFlg) {
// session.removeItem('urlTree');
// let newUrlTree = {};
// const urlPath = htmlName + location.search;
// for (const i in urlTree) {
// const urlHtmlName = urlTree[i].substring(0, pathName.indexOf('?'));
// if (urlHtmlName == htmlName) {
// newUrlTree.push(urlPath);
// } else {
// newUrlTree.push(urlTree[i]);
// }
// }
// session.setItem('urlTree', newUrlTree);
// //show urlTree
// if ($('.breadcrumb').length) {
// for (const i in newUrlTree) {
// const urlHtmlName = newUrlTree[i].substring(0, pathName.indexOf('?'));
// if (urlHtmlName == htmlName) {
// $('.breadcrumb').append('<li class="breadcrumb-item">作業一覧</li>');
// } else {
// $('.breadcrumb').append('<li class="breadcrumb-item"><a href="task-list.html" class="text-decoration-none text-underline">作業一覧</a></li>');
// }
// }
// }
// } else {
// COMMON.avwScreenMove('index.html');
// }
};
/** Direct home page setting */
HEADER
.
goToHomePage
=
function
(
pageId
)
{
...
...
abweb/html/accountSetting.html
View file @
4c29f689
...
...
@@ -17,11 +17,12 @@
<script
type=
"text/javascript"
src=
"../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/jquery/jquery-ui.min.js?__UPDATEID__"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/i18n.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
src=
"../common/js/header.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/header.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/template/template.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/validation.js"
></script>
<script
type=
"text/javascript"
src=
"../js/setting/settings.js?__UPDATEID__"
></script>
</head>
...
...
@@ -30,18 +31,18 @@
<div
id=
"contentFieldOrverlay"
style=
"display: none;"
>
<!-- header -->
<div
id=
"includedHeader"
></div>
<!-- account setting -->
<main
id=
"main"
>
<div
class=
"container-wrap"
>
<!-- title -->
<h1
class=
"fs-14 font-weight-bold pt-4 pb-3 mb-0 lang"
lang=
"account_setting"
>
アカウント設定
</h1>
<div
id=
"includedMainTitle"
></div>
<h1
class=
"fs-14 font-weight-bold pt-4 pb-3 mb-0 lang"
lang=
"account_setting"
></h1>
<!-- content -->
<div
class=
"row"
>
<div
class=
"col-md-6 col-12 mb-4"
>
<div
class=
"card p-4"
>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"account
Information"
>
アカウント情報
</h2>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"account
_setting"
>
</h2>
<table>
<colgroup>
<col
span=
"1"
class=
"w-120px"
>
...
...
abweb/html/index.html
View file @
4c29f689
...
...
@@ -24,10 +24,10 @@
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"
></script>
<script
src=
"../js/template/template.js?__UPDATEID__"
></script>
<script
src=
"../js/operationList/operationList.js?__UPDATEID__"
></script>
<script
src=
"../js/dashboardSetting/dashboardSetting.js?__UPDATEID__"
></script>
<script
src=
"../js/dashboard/dashboard.js?__UPDATEID__"
></script>
<script
src=
"../js/template/template.js?__UPDATEID__"
></script>
<script
src=
"../js/topPage/topPage.js?__UPDATEID__"
></script>
<script
src=
"../js/reportForm/reportForm.js?__UPDATEID__"
></script>
</head>
...
...
abweb/html/pdfPrint.html
View file @
4c29f689
...
...
@@ -24,11 +24,11 @@
<script
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
src=
"../common/js/header.js?__UPDATEID__"
></script>
<script
src=
"../js/template/template.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/header.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/pdfPrint/pdfPrint.js?__UPDATEID__"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
PP
.
init
();
...
...
abweb/html/reportList.html
View file @
4c29f689
...
...
@@ -17,12 +17,10 @@
<script
type=
"text/javascript"
src=
"../common/js/jquery/jquery-3.6.0.min.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/jquery/jquery-ui.min.js?__UPDATEID__"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/i18n.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/gasparesganga-jquery-loading-overlay@2.1.7/dist/loadingoverlay.min.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
src=
"../common/js/header.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/template/template.js"
></script>
...
...
abweb/js/dashboard/dashboard.js
View file @
4c29f689
...
...
@@ -141,7 +141,7 @@ DASHBOARD.init = function () {
};
/** load common data */
DASHBOARD
.
loadCommon
=
function
()
{
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadDashboardSetting
(
'#includedDashboardSetting'
,
DASHBOARD
.
changeSettingCallback
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'dashboard'
,
null
,
DASHBOARD
.
loadMainTitleCallback
);
...
...
abweb/js/header/header.js
deleted
100644 → 0
View file @
1722f5fc
/**
* header js for index.
* ※Code is written mainly for dashboard and operationList.
*
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
HEADER
=
{};
/**
* init
*/
HEADER
.
init
=
function
()
{
$
(
'#dspLoginId'
).
text
(
ClientData
.
userInfo_loginId
());
$
(
'#btnLogout'
).
click
(
HEADER
.
logoutFunction
);
};
/**
* create url tree & show breadcrumbs list
*/
HEADER
.
urlTree
=
function
()
{
const
pathName
=
location
.
pathname
;
const
htmlName
=
pathName
.
substring
(
pathName
.
indexOf
(
'/'
)
+
1
);
//now url tree
let
urlTree
=
session
.
getItem
(
'urlTree'
);
// check auth
let
authFlg
=
false
;
if
((
!
urlTree
&&
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
)
||
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
)
{
authFlg
=
true
;
session
.
removeItem
(
'urlTree'
);
}
urlList
:
for
(
const
i
in
urlTree
)
{
const
urlHtmlName
=
urlTree
[
i
].
substring
(
0
,
pathName
.
indexOf
(
'?'
));
findUrl
:
for
(
const
passList
in
CONSTANT
.
URL_TREE_PASS
)
{
for
(
const
k
in
passList
)
{
if
(
urlHtmlName
==
passList
[
k
])
{
if
(
htmlName
==
passList
[
k
])
{
authFlg
=
true
;
break
urlList
;
}
break
;
}
else
{
break
findUrl
;
}
}
}
}
if
(
authFlg
)
{
session
.
removeItem
(
'urlTree'
);
let
newUrlTree
=
{};
const
urlPath
=
htmlName
+
location
.
search
;
for
(
const
i
in
urlTree
)
{
const
urlHtmlName
=
urlTree
[
i
].
substring
(
0
,
pathName
.
indexOf
(
'?'
));
if
(
urlHtmlName
==
htmlName
)
{
newUrlTree
.
push
(
urlPath
);
}
else
{
newUrlTree
.
push
(
urlTree
[
i
]);
}
}
session
.
setItem
(
'urlTree'
,
newUrlTree
);
//show urlTree
if
(
$
(
'.breadcrumb'
).
length
)
{
for
(
const
i
in
newUrlTree
)
{
const
urlHtmlName
=
newUrlTree
[
i
].
substring
(
0
,
pathName
.
indexOf
(
'?'
));
if
(
urlHtmlName
==
htmlName
)
{
$
(
'.breadcrumb'
).
append
(
'<li class="breadcrumb-item">作業一覧</li>'
);
}
else
{
$
(
'.breadcrumb'
).
append
(
'<li class="breadcrumb-item"><a href="task-list.html" class="text-decoration-none text-underline">作業一覧</a></li>'
);
}
}
}
}
else
{
COMMON
.
avwScreenMove
(
'index.html'
);
}
};
/**
* Direct home page setting
* @param {*} pageId
*/
HEADER
.
goToHomePage
=
function
(
pageId
)
{
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
if
(
settings
.
dashboardHome
==
1
)
{
HEADER
.
goDashboard
();
}
else
{
HEADER
.
goOperationList
();
}
});
};
/**
* logout function
*/
HEADER
.
logoutFunction
=
function
()
{
console
.
log
(
'clicked logout'
);
$
(
'#msgModel'
).
text
(
I18N
.
i18nText
(
'msgLogoutConfirm'
));
$
(
'#confirmYes'
).
click
(
HEADER
.
processLogout
);
};
/**
* process logout
*/
HEADER
.
processLogout
=
function
()
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
LOGOUT
;
COMMON
.
cmsAjax
(
url
,
params
,
false
,
function
(
data
)
{
if
(
data
.
httpStatus
==
CONSTANT
.
HTTP_STATUS
.
OK
)
{
SessionStorageUtils
.
clear
();
COMMON
.
userSetting
().
remove
(
CONSTANT
.
KEYS
.
userInfo_sid
);
COMMON
.
userSetting
().
remove
(
CONSTANT
.
KEYS
.
userInfo_sid_local
);
// Move to login screen
//window.location = COMMON.ScreenIds.Login;
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
}
else
{
if
(
data
.
errorMessage
)
{
COMMON
.
displayAlert
(
data
.
errorMessage
);
}
else
{
COMMON
.
displayAlert
(
'errorOccured'
);
}
}
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
if
(
xmlHttpRequest
.
errorMessage
)
{
COMMON
.
displayAlert
(
xmlHttpRequest
.
errorMessage
);
}
else
{
COMMON
.
displayAlert
(
'errorOccured'
);
}
},
);
};
/**
* Go page of operationList
*/
HEADER
.
goOperationList
=
function
()
{
sessionStorage
.
activeTab
=
CONSTANT
.
PAGE_TAB
.
OPERATION_LIST
;
OL
.
init
();
};
/**
* Go page of dashboard
*/
HEADER
.
goDashboard
=
function
()
{
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_NAME
.
DASHBOARD
;
COMMON
.
avwScreenMove
(
'dashboard.html'
);
};
/**
* Initialize with any navigation
*
* @param {String} bottomNav
*/
HEADER
.
activeInitBottomNav
=
function
(
bottomNav
)
{
HEADER
.
inactiveAllBottomNav
();
HEADER
.
activeBottomNav
(
bottomNav
);
};
/**
* change inactive all footer bottom
*/
HEADER
.
inactiveAllBottomNav
=
function
()
{
let
navs
=
document
.
getElementsByClassName
(
'bottom-nav'
);
for
(
i
=
0
;
i
<
navs
.
length
;
i
++
)
{
navs
[
i
].
className
=
navs
[
i
].
className
.
replace
(
'text-primary'
,
'text-secondary'
);
let
img
=
navs
[
i
].
querySelector
(
'img'
);
if
(
img
&&
img
.
getAttribute
(
'data-inactive-src'
))
{
img
.
src
=
img
.
getAttribute
(
'data-inactive-src'
);
}
}
};
/**
* Change specific footer bottom to active.
*
* @param {String} bottomNavId
*/
HEADER
.
activeBottomNav
=
function
(
bottomNavId
)
{
let
elm
=
$
(
'#'
+
bottomNavId
);
if
(
typeof
elm
!==
'object'
)
{
console
.
log
(
'HEADER.activeBottomNav:elm !== object:'
+
bottomNavId
);
return
;
}
elm
.
removeClass
(
'text-secondary'
);
elm
.
addClass
(
'text-primary'
);
let
img
=
elm
.
find
(
'img'
)[
0
];
if
(
img
&&
img
.
getAttribute
(
'data-src'
))
{
img
.
src
=
img
.
getAttribute
(
'data-src'
);
}
};
abweb/js/operationList/operationList.js
View file @
4c29f689
...
...
@@ -23,7 +23,7 @@ OL.operationGroupMasterId;
OL
.
init
=
function
()
{
console
.
log
(
'OperationList start'
);
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
null
,
null
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
...
...
@@ -503,6 +503,9 @@ OL.resetSearch = function () {
OL
.
sendOperation
=
function
(
operationId
,
operationType
,
reportType
,
enableAddReport
)
{
//save operation logs. needed for sorting
OL
.
saveOperationReadingLog
(
operationId
,
operationType
,
reportType
);
const
urlTree
=
{
titleLang
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
};
sessionStorage
.
setItem
(
'urlTree'
,
{
titleLang
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
});
sessionStorage
.
setItem
(
'nameTree'
,
{
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
});
//Transition to the report form or operation list screen
if
(
enableAddReport
==
'1'
||
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
)
{
sessionStorage
.
OL_operationId
=
operationId
;
...
...
abweb/js/pdfPrint/pdfPrint.js
View file @
4c29f689
...
...
@@ -25,13 +25,9 @@ PP.init = function () {
* load common
*/
PP
.
loadCommon
=
function
()
{
$
(
'#includedHeader'
).
load
(
'../common/html/header.html'
,
function
()
{
I18N
.
initi18n
();
HEADER
.
init
();
});
$
(
'#includedConfirmModal'
).
load
(
'../common/html/confirmModal.html'
,
function
()
{
I18N
.
initi18n
();
});
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pdfPrint'
,
navs
,
null
);
};
/**
...
...
abweb/js/pickup/pickup.js
View file @
4c29f689
...
...
@@ -137,7 +137,7 @@ PICKUP.init = function () {
console
.
log
(
'PICKUP.init'
);
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
const
navs
=
[
{
...
...
abweb/js/pushMessageDetail/pushMessageDetail.js
View file @
4c29f689
...
...
@@ -25,7 +25,7 @@ PushMessageDetail.init = function () {
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
//load common html
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
...
...
abweb/js/pushMessageList/pushMessageList.js
View file @
4c29f689
...
...
@@ -11,7 +11,7 @@ PushMessageList.baseApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), Client
PushMessageList
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
...
...
abweb/js/reportForm/reportForm.js
View file @
4c29f689
...
...
@@ -21,13 +21,8 @@ RF.init = function () {
* load common
*/
RF
.
loadCommon
=
function
()
{
$
(
'#includedHeader'
).
load
(
'../common/html/header.html'
,
function
()
{
I18N
.
initi18n
();
HEADER
.
init
();
});
$
(
'#includedConfirmModal'
).
load
(
'../html/common/confirm-modal.html'
,
function
()
{
I18N
.
initi18n
();
});
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
};
/**
...
...
abweb/js/reportList/reportList.js
View file @
4c29f689
...
...
@@ -23,17 +23,31 @@ RL.init = function () {
* load common
*/
RL
.
loadCommon
=
function
()
{
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
href
:
'dashboard.html'
,
},
{
titleLang
:
'pickup'
,
},
];
let
urlTree
=
sessionStorage
.
getItem
(
'urlTree'
);
let
nameTree
=
sessionStorage
.
getItem
(
'nameTree'
);
console
.
log
(
"kdh check urlTree : "
+
urlTree
);
console
.
log
(
"kdh check nameTree : "
+
nameTree
);
// const navs = [
// {
// titleLang: 'dashboard',
// href: 'dashboard.html',
// },
// {
// titleLang: 'pickup',
// },
// ];
const
navs
=
[];
if
(
urlTree
)
{
for
(
var
i
=
0
;
i
<
urlTree
.
length
;
i
++
)
{
navs
[
i
]
=
{
titleLang
:
nameTree
[
i
],
href
:
urlTree
[
i
]}
}
}
navs
[
navs
.
length
-
1
]
=
{
titleLang
:
"reportList"
};
console
.
log
(
"kdh check navs : "
+
navs
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'reportList'
,
navs
,
RL
.
loadMainTitleCallback
);
};
...
...
abweb/js/sendMessage/sendMessage.js
View file @
4c29f689
...
...
@@ -120,7 +120,7 @@ SendMessage.templateSelectedCallback = function (template) {
SendMessage
.
init
=
function
()
{
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHea
r
der
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
...
...
abweb/js/setting/settings.js
View file @
4c29f689
...
...
@@ -148,13 +148,18 @@ SETTINGS.getNewPasswordRe = function () {
// Initalize screen
SETTINGS
.
initScreen
=
function
()
{
$
(
'#includedHeader'
).
load
(
'../common/html/header.html'
,
function
()
{
I18N
.
initi18n
();
HEADER
.
init
();
});
$
(
'#includedConfirmModal'
).
load
(
'../common/html/confirmModal.html'
,
function
()
{
I18N
.
initi18n
();
});
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
const
navs
=
[
{
titleLang
:
'txtTooltipBack'
,
href
:
'javascript:history.back();'
,
},
{
titleLang
:
'account_setting'
,
},
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
''
,
navs
,
null
);
// Login ID
$
(
'#txtLoginId'
).
text
(
ClientData
.
userInfo_loginId_session
());
// Account Path
...
...
abweb/js/template/template.js
View file @
4c29f689
...
...
@@ -5,7 +5,7 @@
var
TEMPLATE
=
{};
/** template load header */
TEMPLATE
.
loadHea
r
der
=
function
(
elmentId
)
{
TEMPLATE
.
loadHeader
=
function
(
elmentId
)
{
$
(
elmentId
).
load
(
'../common/html/header.html'
,
function
()
{
$
(
'#iconHomeDashboard'
).
removeClass
(
'active'
);
$
(
'#iconHomeWorkList'
).
removeClass
(
'active'
);
...
...
@@ -37,6 +37,7 @@ TEMPLATE.loadDashboardSetting = function (elmentId, changeCallback) {
*/
TEMPLATE
.
loadConfirmModal
=
function
(
elmentId
)
{
$
(
elmentId
).
load
(
'../common/html/confirmModal.html'
,
function
()
{
HEADER
.
initLogout
();
I18N
.
initi18n
();
});
};
...
...
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