diff --git a/src/templates/projects/landing.pug b/src/templates/projects/landing.pug index 3217d6d..50f636f 100644 --- a/src/templates/projects/landing.pug +++ b/src/templates/projects/landing.pug @@ -105,7 +105,7 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }} | {% if n.node_type not in ['comment', 'post'] and n.picture %} .thumbnail.expand-image-links .img-container - a(href="{{ n.picture.thumbnail('l', api=api) }}", data-node_id="{{ n._id }}") + a.js-open-overlay(href="{{ n.picture.thumbnail('l', api=api) }}", data-node_id="{{ n._id }}") img(src="{{ n.picture.thumbnail('l', api=api) }}", alt="{{ n.name }}") .img-caption.table | {# Not using for the moment @@ -165,11 +165,10 @@ script. } }); - $("a[data-node_id]").on( "click", function(e) { - // var nodeId = $(this).data('node_id'); - // displayNode(nodeId); + $("a.js-open-overlay").on( "click", function(e) { e.preventDefault(); e.stopPropagation(); + $('#page-overlay').addClass('active'); var url = $(this).attr('href'); $('#page-overlay').html('')