Skip to content

Commit

Permalink
allowing links to be open from back face card
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
himanshu1618 committed Jan 12, 2016
1 parent dc34815 commit 9094cd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/adapt-contrib-flipcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ define([

// Click or Touch event handler for flip card.
onClickFlipItem: function(event) {
if (event && event.preventDefault) event.preventDefault();
if(event && event.target.tagName.toLowerCase() === 'a') {
return;
} else {
event && event.preventDefault();
}

var $selectedElement = $(event.currentTarget);
var flipType = this.model.get('_flipType');
Expand Down

0 comments on commit 9094cd8

Please sign in to comment.