Add .JPG and .jpeg extensions to Magnific Popup lightbox call. Fixes #33

This commit is contained in:
Michael Rose
2014-03-14 08:37:12 -04:00
parent 39e4cf57af
commit db2981d253
3 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ $(function() {
});
// Add lightbox class to all image links
$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");
$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");
// Magnific-Popup options
$(document).ready(function() {