Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Merge branch 'master' of https://github.com/luccioman/yacy_search_server
Michael Peter Christenac034db8bc27
diff --cc htroot/js/highslide/highslide.jsindex 0dcfd4ce5,45d06d867..f6103e367--- a/htroot/js/highslide/highslide.js+++ b/htroot/js/highslide/highslide.js@@@ -1089,7 -1089,21 +1089,21 @@@ imageCreate : function()this.content = img;img.onload = function () {if (hs.expanders[exp.key]) exp.contentLoaded();- };++ };+ /* Patch start : manage loading or rendering error to avoid 'loading...' stay indefinitely */+ img.onerror = function () {+ /* Set alternative text */+ img.alt = 'X';+ /* Set image size to ensure it can be clicked to close popup */+ if(exp.content) {+ exp.content.width = 30;+ exp.content.height = 30;+ }+ if (hs.expanders[exp.key]) {+ exp.contentLoaded();+ }};- /* Patch end */++ /* Patch end */if (hs.blockRightClick) img.oncontextmenu = function() { return false; };img.className = 'highslide-image';hs.setStyles(img, {@@@ -1099,7 -1113,8 +1113,7 @@@maxWidth: '9999px',zIndex: 3});-- img.title = hs.lang.restoreTitle;-++ img.title = hs.lang.restoreTitle;if (hs.safari && hs.uaVersion < 525) hs.container.appendChild(img);if (hs.ie && hs.flushImgSize) img.src = null;img.src = this.src;diff --cc source/net/yacy/document/ImageParser.javaindex fa8a50f59,9a8d335c5..aaff10437--- a/source/net/yacy/document/ImageParser.java+++ b/source/net/yacy/document/ImageParser.java@@@ -71,13 -59,10 +71,16 @@@ public class ImageParserConcurrentLog.fine("IMAGEPARSER", "IMAGEPARSER.parse : could not parse image " + filename, e);}}+ if (image == null) {+ if (ConcurrentLog.isFine("IMAGEPARSER")) {+ ConcurrentLog.fine("IMAGEPARSER", "IMAGEPARSER.parse : ImageIO failed for " + filename);+ }+ return null;+ }}+ if (image == null) {+ return null;+ }final int handle = image.hashCode();mediaTracker.addImage(image, handle);