# HG changeset patch # User Sylvain Thénault # Date 1310029850 -7200 # Node ID 5cc7acc7a23881694ff733d27c24e91fd057fb24 # Parent 36126858405fd2a1f1cd5056944cf6a8891909cb [ajax js loading] when everything is already loaded, don't do anything diff -r 36126858405f -r 5cc7acc7a238 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);