nsinject.js
authorAlan Knowles <alan@roojs.com>
Thu, 12 Jul 2012 06:20:48 +0000 (14:20 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Jul 2012 06:20:48 +0000 (14:20 +0800)
nsinject.js

index d525d17..d1bbc5b 100644 (file)
@@ -8,7 +8,7 @@ NS = {
             var ifd = ifr.contentWindow.document;
             var chk = ifd.getElementById('lines');
             
-            if (!ifd.getElementById('rptdataarea')) {
+            if (!ifd.getElementById('rptdataarea') || !ifr.contentWindow.getTotalRowCount) {
                 console.log('report not ready?');
                 window.setTimeout(frameload,300);
                 return;