Permalink
Browse files

fix: FancyBox with no extension url

  • Loading branch information...
1 parent daa58c8 commit 5ab41836a370652b69eb381ff863c65dec3b6b17 @MOxFIVE committed Jul 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/js/main.js
View
@@ -78,7 +78,7 @@ require([], function (){
var height = imgArr.eq(i).attr("height");
imgArr.eq(i).replaceWith("<a href='"+src+"' title='"+title+"' rel='fancy-group' class='fancy-ctn fancybox'><img src='"+src+"' width="+width+" height="+height+" title='"+title+"' alt='"+title+"'></a>");
}
- $(".article-inner .fancy-ctn").fancybox();
+ $(".article-inner .fancy-ctn").fancybox({ type: "image" });
}
})
}

0 comments on commit 5ab4183

Please sign in to comment.