mardi 23 décembre 2014

Run javascript after display template loaded



How can I run some JavaScript after my display template has loaded. I have tried:



AddPostRenderCallback(ctx, function () {
jQuery(document).ready(function () {
alert(jQuery('.ms-srch-hover-subTitle').text());
});
})


but that doesn't work








0 commentaires:

Enregistrer un commentaire