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
4a6c5f41
Commit
4a6c5f41
authored
Jul 01, 2021
by
Lee Munkyeong
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
カテゴリーパンクズ対応
parent
c2efed99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
app/script/check.js
+12
-6
No files found.
app/script/check.js
View file @
4a6c5f41
...
...
@@ -2739,17 +2739,21 @@ CHK.showWhiteFrame = function() {
CHK
.
createCategory
=
function
(
operationGroupMasterList
)
{
if
(
CHK
.
isAndroid
)
{
$
(
'.group-category-list'
).
remove
();
$
(
".group-category-list"
).
remove
();
$
(
"#groupMasterPath"
).
empty
();
if
(
typeof
CHK
.
operationGroupMasterId
==
'undefined'
||
CHK
.
operationGroupMasterId
==
0
)
{
$
(
"#groupMasterPath"
).
append
(
'<li class="breadcrumb-item"><a href="#" class="text-decoration-none text-dark">'
+
getMsg
(
"all"
)
+
'</a></li>'
);
}
else
{
$
(
"#groupMasterPath"
).
append
(
'<li class="breadcrumb-item"><a href="#" class="text-decoration-none text-dark">'
+
CHK
.
operationGroupMasterId
+
'</a></li>'
);
var
groupMaster
=
operationGroupMasterList
.
filter
(
it
=>
it
.
operationGroupMasterId
==
CHK
.
operationGroupMasterId
)[
0
];
var
groupMasterPathIdlist
=
groupMaster
.
treePath
.
split
(
'/'
);
groupMasterPathIdlist
.
forEach
(
function
(
parentId
){
var
pathOperationGroupMaster
=
operationGroupMasterList
.
filter
(
it
=>
it
.
operationGroupMasterId
==
parentId
)[
0
];
$
(
"#groupMasterPath"
).
append
(
'<li class="breadcrumb-item"><a onclick="CHK.changeOperationGroupMaster('
+
pathOperationGroupMaster
.
operationGroupMasterId
+
');" class="text-decoration-none text-dark">'
+
pathOperationGroupMaster
.
operationGroupMasterName
+
'</a></li>'
);
});
}
}
//パンくずリスト初期表示(全体)
$
(
'.breadcrumb li'
).
eq
(
1
).
hide
();
$
(
'.breadcrumb li'
).
eq
(
2
).
hide
();
//サイドメニューカテゴリー構造作成
operationGroupMasterList
.
sort
((
a
,
b
)
=>
(
a
.
operationGroupMasterId
>
b
.
operationGroupMasterId
)
?
1
:
-
1
);
...
...
@@ -2895,7 +2899,9 @@ function acdMenu() {
}
CHK
.
changeOperationGroupMaster
=
function
(
operationGroupMasterId
)
{
$
(
'#category-toggle-button'
).
click
();
if
(
$
(
"#category-menu"
).
hasClass
(
"open"
))
{
$
(
'#category-toggle-button'
).
click
();
}
CHK
.
operationGroupMasterId
=
operationGroupMasterId
;
CHK
.
createCategory
(
CHK
.
operationGroupMaster
.
operationGroupMasterList
);
CHK
.
search
();
...
...
Takatoshi Miura
@miura-t
mentioned in commit
c54a61ef
Jul 01, 2021
mentioned in commit
c54a61ef
mentioned in commit c54a61efc90a27c74ce2b7df9a802a5d74fdb524
Toggle commit list
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