Fixes inline-expanding.js to allow clickable pdf thumbnails
This commit is contained in:
parent
c34844cde8
commit
554c19c248
|
@ -100,7 +100,8 @@ $(document).ready(function(){
|
|||
|
||||
for (var i = 0; i < link.length; i++) {
|
||||
if (typeof link[i] == "object" && link[i].childNodes && typeof link[i].childNodes[0] !== 'undefined' &&
|
||||
link[i].childNodes[0].src && link[i].childNodes[0].className.match(/post-image/) && !link[i].className.match(/file/)) {
|
||||
link[i].childNodes[0].src && link[i].childNodes[0].className.match(/post-image/) && !link[i].className.match(/file/) &&
|
||||
!link[i].href.match("\\.(pdf|djvu|djv)$") ) {
|
||||
link[i].onclick = function(e) {
|
||||
var img, post_body, still_open, canvas, scroll;
|
||||
var thumb = this.childNodes[0];
|
||||
|
|
Loading…
Reference in New Issue