web/data/cubicweb.ajax.js
changeset 4830 10e8bc190695
parent 4208 b2826afdaf8c
child 5157 1202e6565aff
--- a/web/data/cubicweb.ajax.js	Mon Mar 08 09:51:29 2010 +0100
+++ b/web/data/cubicweb.ajax.js	Mon Mar 08 19:11:47 2010 +0100
@@ -92,12 +92,9 @@
        setFormsTarget(node);
     }
     loadDynamicFragments(node);
-    // 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');
+    // XXX [3.7] jQuery.one is now used instead jQuery.bind,
+    // jquery.treeview.js can be unpatched accordingly.
+    jQuery(CubicWeb).trigger('server-response', [true, node]);
 }
 
 /* cubicweb loadxhtml plugin to make jquery handle xhtml response