Thumbnails Hide if 1 image

Last post 12-31-2010, 8:40 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  12-28-2010, 10:59 AM 65543

    Thumbnails Hide if 1 image

    Is there anyway I can supress the thumbnails panel if there is only 1 image present. I only want it to show if there is more then 1 image available...
  •  12-31-2010, 8:40 PM 65563 in reply to 65543

    Re: Thumbnails Hide if 1 image

    Hi regrossman,
     
    If you mean the thumbnails panel in "SlideShow" layout, please try the way below
     
    1. Open file D:\2005\Gallery\CuteSoft_Client\Gallery\Layout\SlideShow\Code.js
     
    2. Find section below in method "GalleryLayout.prototype.DrawUI=function _GalleryLayout_DrawUI() "
     
    var photos=[];
        for(var i=0;i<this._categories.length;i++)
        {
            photos=photos.concat(this._categories[i].Photos);
        }
     
    3.  Add the section below under the section above
     
    if(photos.length<2)
        {
            this.dng_tabcontainer.style.visibility="hidden";
        }
     
    4. Like
     
    var photos=[];
        for(var i=0;i<this._categories.length;i++)
        {
            photos=photos.concat(this._categories[i].Photos);
        }
        if(photos.length<2)
        {
            this.dng_tabcontainer.style.visibility="hidden";
        }
     
     
    Regards,
     
    ken
View as RSS news feed in XML