From 78d7cf7886282c3f68dfe4814dc2e5170a34426a Mon Sep 17 00:00:00 2001 From: coderaiaser Date: Fri, 14 Jun 2013 05:06:15 -0700 Subject: [PATCH] moved Images.hideLoad(); to beforeShow --- lib/client/view.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/view.js b/lib/client/view.js index 531bd576..abb95ca9 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -11,8 +11,10 @@ var CloudCmd, Util, DOM, CloudFunc, $; View = this, Config = { - beforeShow : Key.unsetBind, - + beforeShow : function(){ + Images.hideLoad(); + Key.unsetBind(); + }, afterShow : function(){ var lEditor = DOM.getById('View'); if(lEditor) @@ -59,12 +61,10 @@ var CloudCmd, Util, DOM, CloudFunc, $; else { lPath = CloudFunc.FS + DOM.getCurrentPath(); if( Util.checkExtension(lPath, ['png','jpg', 'gif','ico']) ) { - Images.hideLoad(); $.fancybox.open({ href : lPath }, Config); } else DOM.getCurrentData(function(pParams){ - Images.hideLoad(); $.fancybox('
' + pParams.data + '
', Config); });