From b3260735020e9c440849790c567e56894486df84 Mon Sep 17 00:00:00 2001 From: setnes Date: Sat, 5 Dec 2015 11:31:43 -0600 Subject: [PATCH] Using anchor without href while testing click handler. --- js/galleryalbum.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/galleryalbum.js b/js/galleryalbum.js index 930936907f..44bf2a8835 100644 --- a/js/galleryalbum.js +++ b/js/galleryalbum.js @@ -8,7 +8,7 @@ 'data-width="{{targetWidth}}" data-height="{{targetHeight}}">' + '
' + ' {{label}}' + - ' ' + + ' ' + ''; /** @@ -54,12 +54,11 @@ targetHeight: targetHeight, targetWidth: targetHeight, label: album.name, - targetPath: '#' + encodeURIComponent(album.path) }); album.domDef = $(template); album.loader = album.domDef.children('.album-loader'); album.loader.hide(); - album.domDef.click(album._showLoader.bind(album)); + album.domDef.click(album._openAlbum.bind(album)); album._fillSubAlbum(targetHeight); @@ -126,14 +125,15 @@ }, /** - * Shows a loading animation + * Shows a loading animation, opens the album. * * @param event * @private */ - _showLoader: function (event) { + _openAlbum: function (event) { event.stopPropagation(); this.loader.show(); + location.href = '#' + encodeURIComponent(this.path); }, /**