Skip to content

Commit

Permalink
fix for grant flipcard for grants that were AJASX-ily loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Feb 21, 2019
1 parent 08e75f6 commit 162d6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/v2/js/grants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(document).ready(() => {
minimumResultsForSearch: Infinity
});

$('.grant-item').click(function() {
$(document).on('click', '.grant-item', function() {
$(this).find('img').each(function() {
var src_url = $(this).data('src');

Expand All @@ -20,7 +20,7 @@ $(document).ready(() => {

$('.select2-selection__rendered').removeAttr('title');

$('.flip-card').on('click keypress', e => {
$(document).on('click keypress', '.flip-card', e => {
if ($(e.target).is('a') || $(e.target).is('img')) {
e.stopPropagation();
return;
Expand Down

0 comments on commit 162d6b5

Please sign in to comment.