web/data/cubicweb.lazy.js
changeset 5658 7b9553a9db65
parent 559 7cfd3d11edc8
child 6952 7de13eb473e3
--- a/web/data/cubicweb.lazy.js	Thu Jun 03 10:17:44 2010 +0200
+++ b/web/data/cubicweb.lazy.js	Thu Jun 03 14:51:42 2010 +0200
@@ -1,10 +1,9 @@
-
 function load_now(eltsel, holesel, reloadable) {
     var lazydiv = jQuery(eltsel);
     var hole = lazydiv.children(holesel);
-    if ((hole.length == 0) && !reloadable) {
-	/* the hole is already filled */
-	return;
+    if ((hole.length == 0) && ! reloadable) {
+        /* the hole is already filled */
+        return;
     }
     lazydiv.loadxhtml(lazydiv.attr('cubicweb:loadurl'));
 }
@@ -12,3 +11,4 @@
 function trigger_load(divid) {
     jQuery('#lazy-' + divid).trigger('load_' + divid);
 }
+