Răsfoiți Sursa

【内容管理】修复栏目列表界面左导航的问题

unknown 5 ani în urmă
părinte
comite
3ffcd03d68
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      o2web/source/x_component_cms_Module/Main.js

+ 3 - 2
o2web/source/x_component_cms_Module/Main.js

@@ -1172,6 +1172,7 @@ MWF.xApplication.cms.Module.NaviCategory = new Class({
 		}
 	},
 	getRevealData: function(){
+		debugger;
 		var j = this.data.extContent;
 		if( j ){
 			this.extContent = JSON.parse( j );
@@ -1195,10 +1196,10 @@ MWF.xApplication.cms.Module.NaviCategory = new Class({
 			}.bind(this), null, false );
 		}
 
-		this.extContent.reveal.each( function( r ){
+		this.extContent.reveal.each( function( r, i ){
 			if(this.data.defaultViewName && r.id == this.data.defaultViewName ){
 				this.defaultRevealData = r;
-			}else{
+			}else if( i>0 ){
 				this.isExpended = true;
 				this.hasSub = true;
 			}