Skip to content

Commit

Permalink
Fixes opening folder and opening images.
Browse files Browse the repository at this point in the history
  • Loading branch information
raghunayyar committed Nov 3, 2015
1 parent 2405bae commit 42e8cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/galleryalbum.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
.attr('href', '#' + encodeURIComponent(album.path));
container.width(targetHeight);
container.height(targetHeight);
a.append(label);
container.append(a);
album._fillSubAlbum(targetHeight, a);

Expand Down
3 changes: 1 addition & 2 deletions js/galleryimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
.addClass('item-container image-container')
.css('width', targetHeight * image.thumbnail.ratio)
.css('height', targetHeight);
image._addLabel(container);

var newWidth = Math.round(targetHeight * image.thumbnail.ratio);
container.attr('data-width', newWidth)
Expand All @@ -106,7 +105,7 @@
img.alt = encodeURI(image.path);
a.append(img);
container.append(a);

image._addLabel(a);
return container;
});
}
Expand Down

0 comments on commit 42e8cc6

Please sign in to comment.