2017-05-19, 10:04 PM
We encountered this minior bug when some user posted link like this:
https://picload.org/view/ririogow/img_20...4.jpg.html
FancyZoom tried to open it like any other image. It wasn't possible, so we could just admire endlessly loading circle instead.
To overcome this bug, we propose little fix, so links like those gonna be shown in new tab (just like any other regular links).
jscripts/fancyzoom/FancyZoom.js line 85:
need to be changed to:
https://picload.org/view/ririogow/img_20...4.jpg.html
FancyZoom tried to open it like any other image. It wasn't possible, so we could just admire endlessly loading circle instead.
To overcome this bug, we propose little fix, so links like those gonna be shown in new tab (just like any other regular links).
jscripts/fancyzoom/FancyZoom.js line 85:
if (links[i].getAttribute("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)/gi) != -1) {
need to be changed to:
if (links[i].getAttribute("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)$/gi) != -1) {