Commit e70749f2 by Kang Donghun

ログ削除

parent f0e499fd
...@@ -22,19 +22,16 @@ HEADER.init = function () { ...@@ -22,19 +22,16 @@ HEADER.init = function () {
HEADER.urlTree = function () { HEADER.urlTree = function () {
const pathName = location.pathname; const pathName = location.pathname;
const htmlName = pathName.substring(pathName.lastIndexOf('/') + 1); const htmlName = pathName.substring(pathName.lastIndexOf('/') + 1);
console.log("htmlName : " + htmlName);
// check auth // check auth
let authFlg = false; let authFlg = false;
if ((htmlName == CONSTANT.URL_TREE_NAME.OPERATION_LIST) || (htmlName == CONSTANT.URL_TREE_NAME.DASHBOARD)) { if ((htmlName == CONSTANT.URL_TREE_NAME.OPERATION_LIST) || (htmlName == CONSTANT.URL_TREE_NAME.DASHBOARD)) {
console.log("kdh check reset"); authFlg = true;
authFlg = true; sessionStorage.urlTree = null;
sessionStorage.urlTree = null;
} }
//now url tree //now url tree
const urlTree = sessionStorage.urlTree ? JSON.parse(sessionStorage.urlTree) : sessionStorage.urlTree; const urlTree = sessionStorage.urlTree ? JSON.parse(sessionStorage.urlTree) : sessionStorage.urlTree;
// return; // return;
console.log("urlTree : " + urlTree);
if (urlTree) { if (urlTree) {
urlList: for (var i=0; i<urlTree.length; i++) { urlList: for (var i=0; i<urlTree.length; i++) {
const urlHtmlUrl = urlTree[i].href; const urlHtmlUrl = urlTree[i].href;
......
...@@ -90,7 +90,7 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb ...@@ -90,7 +90,7 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
titleHtmlPath = '../common/html/mainNavTitle.html'; titleHtmlPath = '../common/html/mainNavTitle.html';
navs = sessionStorage.urlTree ? JSON.parse(sessionStorage.urlTree) : null; navs = sessionStorage.urlTree ? JSON.parse(sessionStorage.urlTree) : null;
} }
$(elmentId).load(titleHtmlPath, function (data) { $(elmentId).load(titleHtmlPath, function (data) {
$(elmentId).replaceWith(data); $(elmentId).replaceWith(data);
if (titleLang) { if (titleLang) {
...@@ -111,8 +111,6 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb ...@@ -111,8 +111,6 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
var olElm = $('#mainTitleNavs ol'); var olElm = $('#mainTitleNavs ol');
for (var i = 0; i < navs.length; i++) { for (var i = 0; i < navs.length; i++) {
const nav = navs[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" />'); var liElm = $('<li class="breadcrumb-item" />');
if (nav.href && i != navs.length -1) { if (nav.href && i != navs.length -1) {
var aElm = $('<a class="text-decoration-none text-underline lang" />'); var aElm = $('<a class="text-decoration-none text-underline lang" />');
......
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