From 114442053e3caed9b4c9fe3bfffe1f1c6c4994f6 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 11 Sep 2013 14:01:26 +0000 Subject: [PATCH] feature(dom) Images: add return img --- lib/client/dom.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; }; },