Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
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
abookCheck
design
Commits
e9e1ed5c
Commit
e9e1ed5c
authored
2 months ago
by
NGUYEN LONG CHAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
44120: 【Check CMS 1.4.0_2】カテゴリー選択について
- Add function to display breadcrumbs.
parent
686bb4df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
app/script/check.js
+30
-0
No files found.
app/script/check.js
View file @
e9e1ed5c
...
...
@@ -3482,6 +3482,8 @@ CHK.resetSearch = function() {
CHK
.
openCategory
=
function
()
{
loadCategoryTree
();
window
.
scrollTo
(
0
,
0
);
if
(
$
(
"#category-menu"
).
hasClass
(
"open"
))
{
$
(
"body"
).
css
(
"overflow"
,
"visible"
);
...
...
@@ -3490,6 +3492,34 @@ CHK.openCategory = function() {
}
}
// load category tree same as header
function
loadCategoryTree
()
{
if
(
!
CHK
.
operationGroupMasterId
)
return
;
const
groupMaster
=
CHK
.
operationGroupMaster
.
operationGroupMasterList
.
find
(
it
=>
it
.
operationGroupMasterId
==
CHK
.
operationGroupMasterId
);
if
(
!
groupMaster
)
return
;
const
groupMasterPathIdlist
=
groupMaster
.
treePath
.
split
(
'/'
).
map
(
Number
);
if
(
groupMasterPathIdlist
.
length
>
1
)
{
for
(
let
i
=
0
;
i
<
groupMasterPathIdlist
.
length
;
i
++
)
{
const
parentId
=
groupMasterPathIdlist
[
i
];
const
element
=
$
(
'#groupMasterId_'
+
parentId
);
if
(
!
element
.
length
)
continue
;
if
(
i
<
groupMasterPathIdlist
.
length
-
1
)
{
element
.
children
().
first
().
hasClass
(
'menu-ttl'
)
?
element
.
find
(
"dt"
)?.
click
()
:
element
.
find
(
'.sub-menu-ttl:first'
)?.
click
();
}
else
{
element
.
find
(
'.category-a:first'
)?.
css
(
'font-weight'
,
'bold'
);
}
}
}
else
{
$
(
'#groupMasterId_'
+
groupMasterPathIdlist
[
0
]
+
' a:first'
)?.
css
(
'font-weight'
,
'bold'
);
}
}
//save, load json
CHK
.
saveJson
=
function
(
jsonFileName
,
jsonData
)
{
var
param
=
{};
...
...
This diff is collapsed.
Click to expand it.
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