web/data/cubicweb.ajax.js
branch3.5
changeset 3075 e9b7cd2e9012
parent 3060 ea967a4f6ccb
child 3084 096d680c9da2
equal deleted inserted replaced
3071:6ad4e6d4df86 3075:e9b7cd2e9012
    61     }
    61     }
    62     if (typeof roundedCorners != 'undefined') {
    62     if (typeof roundedCorners != 'undefined') {
    63 	roundedCorners(node);
    63 	roundedCorners(node);
    64     }
    64     }
    65     loadDynamicFragments(node);
    65     loadDynamicFragments(node);
    66     jQuery(CubicWeb).trigger('ajax-loaded');
    66     // XXX simulates document.ready, but the former
       
    67     // only runs once, this one potentially many times
       
    68     // we probably need to unbind the fired events
       
    69     // When this is done, jquery.treeview.js (for instance)
       
    70     // can be unpatched.
       
    71   jQuery(CubicWeb).trigger('ajax-loaded');
    67 }
    72 }
    68 
    73 
    69 /* cubicweb loadxhtml plugin to make jquery handle xhtml response
    74 /* cubicweb loadxhtml plugin to make jquery handle xhtml response
    70  *
    75  *
    71  * fetches `url` and replaces this's content with the result
    76  * fetches `url` and replaces this's content with the result