diff --git a/client.js b/client.js index 12d9b754..0a8713a2 100644 --- a/client.js +++ b/client.js @@ -657,9 +657,8 @@ CloudClient._anyload = function(pParams_o) if(lFunc.onerror && typeof lFunc.onerror === 'function') element.onerror = (function(){ + document.removeChild(element); lFunc.onerror(); - - event.returnValue = false; }); } diff --git a/lib/client/viewer.js b/lib/client/viewer.js index fcda539e..17a6730f 100644 --- a/lib/client/viewer.js +++ b/lib/client/viewer.js @@ -59,9 +59,6 @@ CloudCommander.Viewer.FancyBox = { CloudCommander.jsload(pParent.dir + 'jquery.fancybox.pack.js', {onload: pCallBack}); - - console.log('loading offline copy of' + - 'jquery.fancybox.pack.js'); }) }); }; @@ -73,18 +70,15 @@ CloudCommander.Viewer.FancyBox = { func : { onload: ljsLoad_f, onerror: (function(){ - pParent.removeNotLoaded({src: lSrc, - parent : pParent, - from : document.head - }); + //pParent.removeNotLoaded({src: lSrc, + // parent : pParent, + // from : document.head + //}); CloudCommander.cssLoad({ src : pParent.dir +'jquery.fancybox.css', func : ljsLoad_f - }); - - console.log('loading offline copy of' + - 'jquery.fancybox.css'); + }); }) } });