Authored by biao

update

@@ -79,17 +79,16 @@ function activeNav() { @@ -79,17 +79,16 @@ function activeNav() {
79 var index = getUrlParam('yh_channel'); 79 var index = getUrlParam('yh_channel');
80 80
81 getOtherIndex(); 81 getOtherIndex();
82 -  
83 - // if (index === null) {  
84 - // index = getUrlParam('type');  
85 - // if (index === null) {  
86 - // $nav.find('li:not([data-nav="other"])').eq(0).addClass('active').siblings().removeClass('active');  
87 - // } else {  
88 - // $nav.find('li[data-type=' + index + ']').addClass('active').siblings().removeClass('active');  
89 - // }  
90 - // } else {  
91 - // $nav.find('li:not([data-nav="other"])').eq(index).addClass('active').siblings().removeClass('active');  
92 - // } 82 + if (index === null) {
  83 + index = getUrlParam('type');
  84 + if (index === null) {
  85 + $nav.find('li:not([data-nav="other"])').eq(0).addClass('active').siblings().removeClass('active');
  86 + } else {
  87 + $nav.find('li[data-type=' + index + ']').addClass('active').siblings().removeClass('active');
  88 + }
  89 + } else {
  90 + $nav.find('li:not([data-nav="other"])').eq(index).addClass('active').siblings().removeClass('active');
  91 + }
93 92
94 } 93 }
95 94