diff --git a/lib/client/dom.js b/lib/client/dom.js index f847d636..abe6b14e 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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; }; },