web/data/cubicweb.ajax.js
changeset 4830 10e8bc190695
parent 4208 b2826afdaf8c
child 5157 1202e6565aff
equal deleted inserted replaced
4829:3b79a0fc91db 4830:10e8bc190695
    90     }
    90     }
    91     if (typeof setFormsTarget != 'undefined') {
    91     if (typeof setFormsTarget != 'undefined') {
    92        setFormsTarget(node);
    92        setFormsTarget(node);
    93     }
    93     }
    94     loadDynamicFragments(node);
    94     loadDynamicFragments(node);
    95     // XXX simulates document.ready, but the former
    95     // XXX [3.7] jQuery.one is now used instead jQuery.bind,
    96     // only runs once, this one potentially many times
    96     // jquery.treeview.js can be unpatched accordingly.
    97     // we probably need to unbind the fired events
    97     jQuery(CubicWeb).trigger('server-response', [true, node]);
    98     // When this is done, jquery.treeview.js (for instance)
       
    99     // can be unpatched.
       
   100     jQuery(CubicWeb).trigger('ajax-loaded');
       
   101 }
    98 }
   102 
    99 
   103 /* cubicweb loadxhtml plugin to make jquery handle xhtml response
   100 /* cubicweb loadxhtml plugin to make jquery handle xhtml response
   104  *
   101  *
   105  * fetches `url` and replaces this's content with the result
   102  * fetches `url` and replaces this's content with the result