wintercounter / Protip

A new generation jQuery Tooltip plugin
http://protip.rocks
MIT License
359 stars 38 forks source link

Show one tooltip at a time #6

Closed kuzvac closed 9 years ago

kuzvac commented 9 years ago

Hi i found your awesome plugin, and try to use in my project. For example: i have some links with tooltip on page, tooltip triggering by click. If I click on the first link, and then on the second, both tooltips are visible. How i can show only one tooltip at a time? Custom show event or is there a better solution?

wintercounter commented 9 years ago

Can you show me a code example please how you're using.

UPDATE: Oh, you mean you want to close the previous one in case you click on the next one.

UPDATE 2: The behavior you described should be default so I've applied a fix. Please update to the latest JS file and tell me if it work for you :) https://raw.githubusercontent.com/DoclerLabs/Protip/master/protip.min.js

wintercounter commented 9 years ago

I'm closing this ticket now, feel free to reopen if needed.

kuzvac commented 9 years ago

Hah, you awesome! At the time I did fiddle with the example, you fix it :D Thank you!