Skip to content

Commit

Permalink
fix #2146
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Nov 1, 2015
1 parent 4736322 commit 63b3ba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
@@ -1,6 +1,11 @@
New in Master
=============

Features
--------

* Automatically open gallery images colorbox based on URL fragment (Issue #2146)

Bugfixes
--------

Expand Down
1 change: 1 addition & 0 deletions nikola/data/themes/bootstrap3/templates/gallery.tmpl
Expand Up @@ -90,5 +90,6 @@ $("#gallery_container").flowr({
}
});
$("a.image-reference").colorbox({rel:"gal", maxWidth:"100%",maxHeight:"100%",scalePhotos:true});
$('a.image-reference[href="'+window.location.hash.substring(1,1000)+'"]').click();
</script>
</%block>

0 comments on commit 63b3ba9

Please sign in to comment.