|
@@ -200,12 +200,12 @@
|
|
|
$.each(cate1.cate2List, function(idx2, cate2) {
|
|
$.each(cate1.cate2List, function(idx2, cate2) {
|
|
|
tag += ' <li>\n';
|
|
tag += ' <li>\n';
|
|
|
tag += ' <a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate2.cateGb + '\',\'' + cate2.cate1No + '\',\'' + cate2.cate2No + '\');">' + cate2.cate2Nm + '</a>\n';
|
|
tag += ' <a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate2.cateGb + '\',\'' + cate2.cate1No + '\',\'' + cate2.cate2No + '\');">' + cate2.cate2Nm + '</a>\n';
|
|
|
- if (cate2.leafYn == 'N' && cate2.cate3List.length > 0) {
|
|
|
|
|
|
|
+ if (cate2.leafYn == 'N' && cate2.cate3List != null && cate2.cate3List.length > 0) {
|
|
|
tag += ' <ul class="box_depth2">\n';
|
|
tag += ' <ul class="box_depth2">\n';
|
|
|
$.each(cate2.cate3List, function(idx3, cate3) {
|
|
$.each(cate2.cate3List, function(idx3, cate3) {
|
|
|
tag += ' <li>\n';
|
|
tag += ' <li>\n';
|
|
|
tag += ' <a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate3.cateGb + '\',\'' + cate3.cate1No + '\',\'' + cate3.cate2No + '\',\'' + cate3.cate3No + '\');">' + cate3.cate3Nm + '</a>\n';
|
|
tag += ' <a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate3.cateGb + '\',\'' + cate3.cate1No + '\',\'' + cate3.cate2No + '\',\'' + cate3.cate3No + '\');">' + cate3.cate3Nm + '</a>\n';
|
|
|
- if (cate3.leafYn == 'N' && cate3.cate4List.length > 0) {
|
|
|
|
|
|
|
+ if (cate3.leafYn == 'N' && cate3.cate4List != null && cate3.cate4List.length > 0) {
|
|
|
tag += ' <ul class="box_depth3">\n';
|
|
tag += ' <ul class="box_depth3">\n';
|
|
|
$.each(cate3.cate4List, function(idx4, cate4) {
|
|
$.each(cate3.cate4List, function(idx4, cate4) {
|
|
|
tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate4.cateGb + '\',\'' + cate4.cate1No + '\',\'' + cate4.cate2No + '\',\'' + cate4.cate3No + '\',\'' + cate4.cate4No + '\');">' + cate4.cate4Nm + '</a></li>\n';
|
|
tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate4.cateGb + '\',\'' + cate4.cate1No + '\',\'' + cate4.cate2No + '\',\'' + cate4.cate3No + '\',\'' + cate4.cate4No + '\');">' + cate4.cate4Nm + '</a></li>\n';
|