I have this code which works on a normal display template, so runs after the display template has been rendered but when I add it to a hover, it does it before the template has been rendered. Is there anyway to make sure it only does it after the hover template has been loaded here is the code :
ctx.OnPostRender = [];
ctx.OnPostRender.push(ctx, function () {
alert("hll");
jQuery("div#hoverID").find(".ms-srch-hover-subTitle").each(function () {
alert(jQuery(".ms-srch-hover-subTitle").text());
});
});
0 commentaires:
Enregistrer un commentaire