From: <cl...@hy...> - 2009-02-10 15:04:32
|
Author: clee Date: 2009-02-10 07:04:22 -0800 (Tue, 10 Feb 2009) New Revision: 12455 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12455 Modified: trunk/web/js/lib/lib.js Log: [HQ-1559] Simplify callback by letting IQ invoke rather than setting timeout Modified: trunk/web/js/lib/lib.js =================================================================== --- trunk/web/js/lib/lib.js 2009-02-10 09:28:10 UTC (rev 12454) +++ trunk/web/js/lib/lib.js 2009-02-10 15:04:22 UTC (rev 12455) @@ -1279,12 +1279,6 @@ }; this.getImageURLCallback = function() { - if (document.arcImageData == null) { - console.info("waiting to load document.arcImageData"); - setTimeout("document.arcPortlet.getImageURLCallback()", 800); - return; - } - var response = document.arcImageData; //assign the urls to the img src prepending the base url if(response && response.length >= 0) { @@ -1425,9 +1419,6 @@ handleAs : "html", url : uri, checkString : "document.arcImageData", - load: function(data) { - that.getImageURLCallback(); - }, error : function(data) { that.errorRemotingCallback(data); } |