Created
June 3, 2015 18:25
-
-
Save kaesetoast/a56c2bdde4754d9f7e54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.js-popup-link').each(function(){ | |
var url = $(this).attr('href'); | |
url += (url.split('?')[1] ? '&':'?') + 'type=103'; | |
$(this).attr('data-mfp-src', url); | |
}); | |
$('.js-popup-link').magnificPopup({ | |
type: 'ajax', | |
callbacks: { | |
parseAjax: function(response) { | |
response.data = '<div class="ajax-wrapper">' + response.data + '</div>'; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment