web/data/cubicweb.ajax.js
branch3.5
changeset 3075 e9b7cd2e9012
parent 3060 ea967a4f6ccb
child 3084 096d680c9da2
--- a/web/data/cubicweb.ajax.js	Mon Aug 31 18:59:10 2009 +0200
+++ b/web/data/cubicweb.ajax.js	Tue Sep 01 16:42:57 2009 +0200
@@ -63,7 +63,12 @@
 	roundedCorners(node);
     }
     loadDynamicFragments(node);
-    jQuery(CubicWeb).trigger('ajax-loaded');
+    // XXX simulates document.ready, but the former
+    // only runs once, this one potentially many times
+    // we probably need to unbind the fired events
+    // When this is done, jquery.treeview.js (for instance)
+    // can be unpatched.
+  jQuery(CubicWeb).trigger('ajax-loaded');
 }
 
 /* cubicweb loadxhtml plugin to make jquery handle xhtml response