app/assets/javascripts/assessment_flipper.js in woople-theme-0.2.34 vs app/assets/javascripts/assessment_flipper.js in woople-theme-0.2.35
- old
+ new
@@ -6,11 +6,11 @@
function removeFrontHeight(element) {
element.css({ height: 'inherit' });
}
- $('.assessment .flip-action').on('click', function() {
+ $('.assessment .flip-action a').on('click', function() {
$(this).closest('.assessment').addClass('flip');
var front = $(this).closest('.front');
setFrontHeight(front);
@@ -24,10 +24,10 @@
} else {
front.css({ height: backHeight + 'px' });
}
});
- $('.assessment .flip-action-back').on('click', function() {
+ $('.assessment .flip-action-back a').on('click', function() {
var assessment = $(this).closest('.assessment').removeClass('flip');
var front = assessment.find('.front');
removeFrontHeight(front);
});
});