feature(dom) Images: add return img

This commit is contained in:
coderaiser 2013-09-11 14:01:26 +00:00
parent a3db440293
commit 114442053e

View file

@ -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;
};
},