mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
refactored
This commit is contained in:
parent
0298522ac0
commit
a975cf2234
1 changed files with 7 additions and 10 deletions
|
|
@ -769,18 +769,15 @@ var CloudCommander, Util, DOM, CloudFunc;
|
|||
var lRet,
|
||||
lParams = pParams ? pParams : {},
|
||||
lPath = DOM.getCurrentPath(pCurrentFile),
|
||||
lError = function(){
|
||||
Util.exec(pParams.error);
|
||||
DOM.Images.showError();
|
||||
lErrorWas = pParams.error,
|
||||
lError = function(jqXHR){
|
||||
Util.exec(lErrorWas);
|
||||
DOM.Images.showError(jqXHR);
|
||||
};
|
||||
|
||||
if( Util.isFunction(lParams) )
|
||||
lParams = {
|
||||
error : lError,
|
||||
success : Util.retExec(pParams)
|
||||
};
|
||||
else
|
||||
lParams.error = lError;
|
||||
lParams.success = Util.retExec(pParams);
|
||||
|
||||
lParams.error = lError;
|
||||
|
||||
if(!lParams.url)
|
||||
lParams.url = lPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue