mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(config) add autosize
This commit is contained in:
parent
b6b46091f2
commit
55d2fa0d37
2 changed files with 13 additions and 5 deletions
|
|
@ -69,7 +69,10 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
Images.hideLoad();
|
||||
CloudCmd.View.show(div);
|
||||
|
||||
CloudCmd.View.show(div, null, {
|
||||
autoSize: true
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
/**
|
||||
* function shows FancyBox
|
||||
*/
|
||||
this.show = function(pData, pCallBack) {
|
||||
var lPath, lElement,
|
||||
lAfterFunc, lFunc;
|
||||
this.show = function(pData, pCallBack, pConfig) {
|
||||
var lPath, lElement, lAfterFunc, lFunc, name,
|
||||
config = {};
|
||||
|
||||
if (!Loading) {
|
||||
Element = $('<div id=view tabindex=0>');
|
||||
|
|
@ -87,7 +87,12 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
|
||||
Config.afterShow = lFunc;
|
||||
|
||||
$.fancybox(lElement, Config);
|
||||
Util.copyObj(Config, config);
|
||||
|
||||
for (name in pConfig)
|
||||
config[name] = pConfig[name];
|
||||
|
||||
$.fancybox(lElement, config);
|
||||
|
||||
} else {
|
||||
lPath = CloudFunc.FS + DOM.getCurrentPath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue