mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 13:43:23 +00:00
feature(dom) Images: add return img
This commit is contained in:
parent
a3db440293
commit
114442053e
1 changed files with 5 additions and 4 deletions
|
|
@ -39,8 +39,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
* pPosition = {top: true};
|
||||
*/
|
||||
this.showLoad = function(pPosition) {
|
||||
var lRet_b,
|
||||
lLoadingImage = lImages.loading(),
|
||||
var lLoadingImage = lImages.loading(),
|
||||
lErrorImage = lImages.error();
|
||||
|
||||
DOM.hide(lErrorImage);
|
||||
|
|
@ -59,9 +58,9 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
if (!lParent || (lParent && lParent !== lCurrent))
|
||||
lCurrent.appendChild(lLoadingImage);
|
||||
|
||||
lRet_b = DOM.show(lLoadingImage); /* показываем загрузку*/
|
||||
DOM.show(lLoadingImage); /* показываем загрузку*/
|
||||
|
||||
return lRet_b;
|
||||
return lLoadingImage;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -103,6 +102,8 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
Util.log(lText);
|
||||
|
||||
setTimeout( Util.retExec(alert, lText), 100);
|
||||
|
||||
return lErrorImage;
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue