From d45b290d331517624c905b7b201f198382ebe732 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 27 Jul 2012 03:50:17 -0400 Subject: [PATCH] minor changes --- client.js | 5 +---- lib/client/viewer.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index 591028e1..d6f26d65 100644 --- a/client.js +++ b/client.js @@ -656,10 +656,7 @@ CloudClient._anyload = function(pParams_o) if(lFunc.onerror && typeof lFunc.onerror === 'function') - element.onerror = (function(){ - lFunc.onerror(); - return false; - }); + element.onerror = lFunc.onerror; } if(pParams_o.style){ diff --git a/lib/client/viewer.js b/lib/client/viewer.js index e53b004b..9dac4f77 100644 --- a/lib/client/viewer.js +++ b/lib/client/viewer.js @@ -59,6 +59,11 @@ CloudCommander.Viewer.FancyBox = { CloudCommander.jsload(pParent.dir + 'jquery.fancybox.pack.js', {onload: pCallBack}); + + console.log('loading offline copy of' + + 'jquery.fancybox.pack.js'); + + return false; }) }); }; @@ -79,6 +84,11 @@ CloudCommander.Viewer.FancyBox = { src : pParent.dir +'jquery.fancybox.css', func : ljsLoad_f }); + + console.log('loading offline copy of' + + 'jquery.fancybox.css'); + + return false; }) } });