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
e70749f2
Commit
e70749f2
authored
Nov 14, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ログ削除
parent
f0e499fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
abweb/common/js/header.js
+2
-5
abweb/js/template/template.js
+1
-3
No files found.
abweb/common/js/header.js
View file @
e70749f2
...
...
@@ -22,19 +22,16 @@ HEADER.init = function () {
HEADER
.
urlTree
=
function
()
{
const
pathName
=
location
.
pathname
;
const
htmlName
=
pathName
.
substring
(
pathName
.
lastIndexOf
(
'/'
)
+
1
);
console
.
log
(
"htmlName : "
+
htmlName
);
// check auth
let
authFlg
=
false
;
if
((
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
)
||
(
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
))
{
console
.
log
(
"kdh check reset"
);
authFlg
=
true
;
sessionStorage
.
urlTree
=
null
;
authFlg
=
true
;
sessionStorage
.
urlTree
=
null
;
}
//now url tree
const
urlTree
=
sessionStorage
.
urlTree
?
JSON
.
parse
(
sessionStorage
.
urlTree
)
:
sessionStorage
.
urlTree
;
// return;
console
.
log
(
"urlTree : "
+
urlTree
);
if
(
urlTree
)
{
urlList
:
for
(
var
i
=
0
;
i
<
urlTree
.
length
;
i
++
)
{
const
urlHtmlUrl
=
urlTree
[
i
].
href
;
...
...
abweb/js/template/template.js
View file @
e70749f2
...
...
@@ -90,7 +90,7 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
titleHtmlPath
=
'../common/html/mainNavTitle.html'
;
navs
=
sessionStorage
.
urlTree
?
JSON
.
parse
(
sessionStorage
.
urlTree
)
:
null
;
}
$
(
elmentId
).
load
(
titleHtmlPath
,
function
(
data
)
{
$
(
elmentId
).
replaceWith
(
data
);
if
(
titleLang
)
{
...
...
@@ -111,8 +111,6 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
var
olElm
=
$
(
'#mainTitleNavs ol'
);
for
(
var
i
=
0
;
i
<
navs
.
length
;
i
++
)
{
const
nav
=
navs
[
i
];
console
.
log
(
"kdh check nav titleLang : "
+
nav
.
titleLang
);
console
.
log
(
"kdh check nav[href] : "
+
nav
.
href
);
var
liElm
=
$
(
'<li class="breadcrumb-item" />'
);
if
(
nav
.
href
&&
i
!=
navs
.
length
-
1
)
{
var
aElm
=
$
(
'<a class="text-decoration-none text-underline lang" />'
);
...
...
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