moved Images.hideLoad(); to beforeShow

This commit is contained in:
coderaiaser 2013-06-14 05:06:15 -07:00
parent 35e85edaa0
commit 78d7cf7886

View file

@ -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('<div id=view tabindex=0>' +
pParams.data + '</div>', Config);
});