Rustom, Bastien,

Bastien writes:

>> I made a micro screencast for demoing it:
>> http://bzg.fr/u/org-footnotes-jquery.ogv

Thanks, Bastien, that's cool!

Rustom Mody writes:

> Thanks Christian for that.
> Just one small thing -- Can we remove the number?

Sure, try this new version of fntooltip.js:

----------------------

$(document).ready(fntooltips);

function fntooltips() {
    $(".footnum").each(
        function () {
            $("[href='#" + this.id + "']")
                .attr("title", 
                      $(this).closest("div").find("p").text().trim());
           }
        )
}

----------------------

The only line that's changed is the one that now goes

  $(this).closest("div").find("p").text().trim());



Yours,
Christian

Reply via email to