Re: Question on default album

  •  10-20-2010, 9:28 PM

    Re: Question on default album

    Hi Gregger,
     
    How to hide the default category folder in Explorer layout.
     
     1. Open file "CuteSoft_Client\Gallery\Layout\Explorer\Code.js"
     
    2.  Find section below
     
     this.AttachItemEvent(container.appendChild(div)); 
     
    3.  Change it to
     
       if(c.Title!=null)
       {
           this.AttachItemEvent(container.appendChild(div));
       } 
     
     
    How to hide the delete category menu
     
    1. Open file "y\CuteSoft_Client\Gallery\Popup\Default\Code.js" 
     
    2. Find section below and delete/comment it
     
    menu.Add(1,GalleryLocalize.CLICK_DELETE,null,ToDelegate(this,function Delete(){
    this.Confirm(FormatText(GalleryLocalize.CONFIRM_CLICK_DELETECATEGORY,category.Title||GalleryLocalize.DEFAULTCATEGORYNAME),function(res){
    if(!res)return;
    this.Browser.AsyncDeleteCategory({CategoryID:category.CategoryID});
    },this);
    })); 
     
    3. Also, you can handle it by your own logic.
     
    Regards,
     
    ken 
View Complete Thread