Do not show tip if title/custom attribute is undefined.

Joe Young's Avatar

Joe Young

16 Jan, 2012 05:02 PM

Cool plugin, although I have one suggestion / feature request.

If the title attribute or desired attribute is undefined, don't show the tip.

I setup tiptip to go against all links and links without a title attribute still got an empty tip.

My fix was on line 59, when checking if the title != "" but to also check if undefined.

  1. 1 Posted by Jason on 02 Aug, 2012 01:59 AM

    Jason's Avatar

    Thanks for the heads up on where to look. I was able to fix it by changing line 59 to

            if(org_title == ""){
                $("#tiptip_holder").style("display", "none");
                $("#tiptip_content").style("display", "none");
                $("#tiptip_arrow").style("display", "none");
            } else {
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac