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('