Fix conflict between touchswipe and colorbox (closes #201)

The touchswipe action on tap was closing the colorbox window when it should not
(when viewing a video file).
This commit is contained in:
Simon Conseil
2016-06-05 22:35:22 +02:00
parent 7a087d9548
commit 5abd32495f

View File

@@ -154,7 +154,9 @@
},
tap:function(event, target){
$.colorbox.close()
}}).unbind("click");
},
excludedElements: $.fn.swipe.defaults.excludedElements + ", #colorbox"
}).unbind("click");
});
</script>
{% endif %}