diff --git a/lib/client/view.js b/lib/client/view.js index abb95ca9..331aa85e 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -9,6 +9,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; var Key = CloudCmd.Key, Images = DOM.Images, View = this, + Element, Config = { beforeShow : function(){ @@ -16,9 +17,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; Key.unsetBind(); }, afterShow : function(){ - var lEditor = DOM.getById('View'); - if(lEditor) - lEditor.focus(); + Element.focus(); }, beforeClose : Key.setBind, @@ -53,20 +52,31 @@ var CloudCmd, Util, DOM, CloudFunc, $; /** * function shows FancyBox */ - this.show = function(pData){ - var lPath; + this.show = function(pData, pCallBack){ + var lPath, lElement, + lAfterFunc, lFunc; - if(pData) - $.fancybox(pData, Config); - else { - lPath = CloudFunc.FS + DOM.getCurrentPath(); + Element = $('