[ajax js loading] when everything is already loaded, don't do anything
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 07 Jul 2011 11:10:50 +0200
changeset 7623 5cc7acc7a238
parent 7622 36126858405f
child 7624 ce020f90fb8e
[ajax js loading] when everything is already loaded, don't do anything
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Thu Jul 07 11:10:37 2011 +0200
+++ b/web/data/cubicweb.ajax.js	Thu Jul 07 11:10:50 2011 +0200
@@ -189,7 +189,7 @@
                     return resource.substring(dataurl.length);
                 });
                 $srcnode.attr(srcattr, dataurl + '??' + missing_path.join(','));
-            }
+            } else { return ; }
             // === will work if both arguments are of the same type
             if ( $srcnode.attr('type') === 'text/javascript' ) {
                 cw.ajax.evalscripts($srcnode);