|
|
@@ -217,12 +217,12 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
|
|
|
for (var i = 0; i < jsonData.length; i++) {
|
|
|
for (var j = 0; j < jsonData[i].children.length; j++) {
|
|
|
$("a").each(function() {
|
|
|
- if (jsonData[i].category_code == parent) {
|
|
|
- if (jsonData[i].children[j].component_code == type) {
|
|
|
+ if (jsonData[i].category_name == parent) {
|
|
|
+ if (jsonData[i].children[j].component_name == type) {
|
|
|
var searchText = jsonData[i].children[j].component_name;
|
|
|
var found;
|
|
|
|
|
|
- if ($(this).context.innerText == searchText && $(this).context.name == jsonData[i].category_code) {
|
|
|
+ if ($(this).context.innerText == searchText && $(this).context.name == jsonData[i].category_name) {
|
|
|
$(this).context.classList.add("highlight");
|
|
|
$(this).context.parentNode.parentNode.parentNode.classList.add("nav-expanded");
|
|
|
}
|