Changeset 92365 in spip-zone for _plugins_/tooltip/js
- Timestamp:
- Oct 19, 2015, 10:18:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/tooltip/js/tooltip2.js
r92362 r92365 47 47 settings = $.extend({}, $.tooltip.defaults, settings); 48 48 createHelper(settings); 49 helper_opacity = helper.parent.css("opacity"); 49 50 this.each(function() { 50 51 $.data(this, "tooltip", settings); 51 this.tOpacity = helper .parent.css("opacity");52 this.tOpacity = helper_opacity; 52 53 // copy tooltip into its own expando and remove the title 53 54 this.tooltipText = this.title; 54 $(this).attr('title','') .attr('data-tooltip','true');55 $(this).attr('title',''); 55 56 // also remove alt attribute to prevent default tooltip in IE 56 57 this.alt = ""; 57 58 }); 59 this.attr('data-tooltip','true'); 58 60 $(document.body).on('mouseover.tooltip','[data-tooltip]',save) 59 61 .on('mouseout.tooltip','[data-tooltip]',hide)
Note: See TracChangeset
for help on using the changeset viewer.