Changeset 36


Ignore:
Timestamp:
10/27/07 08:07:29 (6 years ago)
Author:
Lantash
Message:

Fixed bug introduced in last commit (as it seems this phrase is used every second commit :-D) that prevented empty albums from opening.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/javascript/klassenbuch.gallery.js

    r35 r36  
    451451                } 
    452452                 
    453                 this._thumbnailTable.innerHTML = this.album.pictures.eachSlice(this.options.picturesPerPage)[this.currentPage] 
    454                         .collect(function(picture, i) { 
    455                                 return "<div class=\"thumbnailContainer\" name=\"" + picture.name + "\"><img src=\"" + picture.getThumbnailPath() + "\" />" + 
    456                                         "<div class=\"fileName\">" + picture.fileName.truncate(18) + "</div></div>"; 
    457                         }).join(" "); 
     453                this._thumbnailTable.clear(); 
    458454                 
    459455                if (this.album.pictures.length > 0) { 
     456                        this._thumbnailTable.innerHTML = this.album.pictures.eachSlice(this.options.picturesPerPage)[this.currentPage] 
     457                                .collect(function(picture, i) { 
     458                                        return "<div class=\"thumbnailContainer\" name=\"" + picture.name + "\"><img src=\"" + picture.getThumbnailPath() + "\" />" + 
     459                                                "<div class=\"fileName\">" + picture.fileName.truncate(18) + "</div></div>"; 
     460                                }).join(" "); 
     461                         
    460462                        this._startSlideShowButton.enable(); 
    461463                } 
Note: See TracChangeset for help on using the changeset viewer.