Forum - jschmidt-systemberatung.de

× jmootips tooltips package for Joomla

Click to Open function possible?

  • Kirk Williams
  • Topic Author
  • Visitor
  • Visitor
10 years 3 months ago #865 by Kirk Williams
Click to Open function possible? was created by Kirk Williams
Greetings, and thank you for offering such a useful extension!

I would like to know if there is any way to edit this plugin to force users to mouse click to open the tooltip (instead of simply hovering over).

I am working with a model using many instances on single pages; such a tweak would improve the usability of this extension in my case.

Thanks in advance, and again, kudos on this quality product!

Best,
Kirk

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #866 by jochen
Replied by jochen on topic Click to Open function possible?
hi,

Nature of tooltips is: If a user hovers the mouse pointer over an item (which is often underlined), without clicking it, and a tooltip will appear.
If you are using mootools framework you may change this behaviour:

1. edit/change jmootips-min.js (in directory "../plugins/content/jmootips/js"
change:
var startEvent=parms.focus?"focus":"mouseenter"
to:
var startEvent=parms.focus?"focus":"click"
2. change plugin parm "Close Tooltip" to "No" (otherwise tooltip will close if mouse pointer leaves target)
3. make sure that jmootips-min.js javascript gets reloaded and is in effect
The following user(s) said Thank You: Kirk Williams

Please Log in or Create an account to join the conversation.

  • Kirk Williams
  • Topic Author
  • Visitor
  • Visitor
10 years 3 months ago #868 by Kirk Williams
Replied by Kirk Williams on topic Click to Open function possible?
After following your instructions, the plugin is behaving exactly as I had hoped. Thank you so much!

And I completely appreciate that my use of this extension is more of a "popup" than a "tooltip" (I probably should have explained in my previous post), however with this configuration it is allowing me to achieve exactly what I was hoping to do with the site.

Thank you again for your prompt reply and your efforts in producing this code!!!

Best,
Kirk :)

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #869 by jochen
Replied by jochen on topic Click to Open function possible?
hi,

thanks for your feedback! I've taken your suggestion and added option to open tips with a mouseclick. You may update with joomla update-function or download/install Version 1.1.2, which supports this with parameter "openonclick" or plugin settings. Option works with mootools and bootstrap javascript frameworks.

Please Log in or Create an account to join the conversation.

  • Kirk Williams
  • Topic Author
  • Visitor
  • Visitor
10 years 3 months ago #870 by Kirk Williams
Replied by Kirk Williams on topic Click to Open function possible?
Again, Thank you for your help!

I'm using this plugin for a catalog for local PTA. A pre-production example can be seen at: www.kirkkwilliams.com/wdscrip/index.php/scrip-cards

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.