Success

User tests: Successful: Unsuccessful:

avatar ghost
ghost
24 Jun 2013

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31233

This PR is a full move from the old Mootools tooltips (hasTip) to the Bootstrap tooltips (hasTooltip).

This PR also includes:

  • Addition of tooltips to stuff that only had titles
  • Removal of tooltips from stuff
  • Some syntax fixes
  • CSS fixes regarding tooltips (including changing alignment of tooltip texts to left instead of center)
  • Removal of redundant code (like the JHtml::_('behavior.tooltip') all over the place
  • Rewrite of js/css and some php of the media file select field to be able to use the Bootstrap tooltip

tooltips

New tooltipText method

To facilitate this, I have added a method to the JHtml class called tooltipText.

This method concatenates a title and content to the <strong>foo</strong><br />bar style, like:

JHtml::tooltipText('FOO', 'BAR');

It also prepares the texts to be used as tooltip, like escaping the quotes to html entities, passing the strings through JText, defining whether to return only the title or content, etc.
It also can handle the old foo::bar style string and convert it.

Testing instructions

Pretty much check everything in all pages that can have a tooltip to see if the tooltip displays ok.

avatar nonumber nonumber - open - 24 Jun 2013
avatar infograf768 infograf768 - close - 26 Jun 2013
avatar nonumber nonumber - head_ref_deleted - 26 Jun 2013
avatar nonumber
nonumber - comment - 27 Jun 2013

Closing because of: #1365

avatar garyamort garyamort - reference | - 2 Dec 13

Add a Comment

Login with GitHub to post a comment