Skip to content

Commit

Permalink
[templates] Fix onClick event handling for Show more button
Browse files Browse the repository at this point in the history
Fixes #235
  • Loading branch information
mizdebsk authored and msimacek committed Feb 15, 2018
1 parent 5188ac0 commit 55eb3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/package-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h3>Most recent builds</h3>
<tr
{% if entry.version %} {# test whether it's a build #}
{% set detail_url = url_for('build_detail', build_id=entry.id) %}
class="{{ entry.css_class }} kk-clickable" onClick="if (arguments[0].target.tagName != 'A') window.location = '{{ detail_url }}'"
class="{{ entry.css_class }} kk-clickable" onClick="for (var node = arguments[0].target; node != null; node = node.parentElement) if (node.tagName == 'A') return; window.location = '{{ detail_url }}'"
{% else %}
class="{{ entry.css_class }}"
{% endif %}
Expand Down

0 comments on commit 55eb3a6

Please sign in to comment.