replaced colorbox with magnific popup lightbox

This commit is contained in:
Régis Hanol
2013-06-12 00:32:48 +02:00
parent e78c04b88b
commit ba3d07ddcb
5 changed files with 627 additions and 61 deletions
@@ -8,12 +8,13 @@
Discourse.Lightbox = {
apply: function($elem) {
var _this = this;
return $('a.lightbox', $elem).each(function(i, e) {
return $LAB.script("/javascripts/jquery.colorbox-min.js").wait(function() {
return $(e).colorbox();
$('a.lightbox', $elem).each(function(i, e) {
$LAB.script("/javascripts/jquery.magnific-popup-min.js").wait(function() {
$(e).magnificPopup({
type: 'image',
closeOnContentClick: true
});
});
});
}
}