Re: Explorer Layout

  •  03-01-2010, 4:13 AM

    Re: Explorer Layout

    Hi wescomputer,
     
    1. Open file "CuteSoft_Client\Gallery\Layout\Explorer\Code.js".
     
    2. Find section below
     
    1. if(!this._selectedcategory)   
    2.     {   
    3.         this.dng_btn_up.style.display="none";   
    4.         this.Browser.FindElement("dng_path").innerHTML="/";   
    5.         var folderthumb=this.Browser.GetTheme("Images/directory-thumbnail.png");   
    6.         for(var i=0;i<this._categories.length;i++)   
    7.         {   
    8.             var c=this._categories[i];   
    9.             var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",folderthumb,128,128);   
    10.             this.AttachItemEvent(container.appendChild(div));   
    11.         }   
    12.     }  
    3. Change to
    1. if(!this._selectedcategory)   
    2.     {   
    3.         this.dng_btn_up.style.display="none";   
    4.         this.Browser.FindElement("dng_path").innerHTML="/";   
    5.         for(var i=0;i<this._categories.length;i++)   
    6.         {   
    7.             var c=this._categories[i];   
    8.             var folderthumb=this.Browser.GetTheme("Images/directory-thumbnail.png");   
    9.                
    10.             if(c.Photos.length!=0)   
    11.             {   
    12.             var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",c.Photos[0].Thumbnail.substr((c.Photos[0].Thumbnail.indexOf("/",2)+1),c.Photos[0].Thumbnail.length),128,128);   
    13.             }   
    14.             else  
    15.             {   
    16.             var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",folderthumb,128,128);   
    17.             }   
    18.             this.AttachItemEvent(container.appendChild(div));   
    19.         }   
    20.     }  
    Regards,
     
    Ken
View Complete Thread