mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
moved Images.hideLoad(); to beforeShow
This commit is contained in:
parent
35e85edaa0
commit
78d7cf7886
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue