Changeset 59612 in spip-zone
- Timestamp:
- Mar 21, 2012, 9:22:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_squelettes_/soyezcreateurs_net/plugins_2.1/plugins/soyezcreateurs/javascript/tooltip.js
r54341 r59612 50 50 createHelper(settings); 51 51 return this.each(function() { 52 $.data(this, "tooltip", settings); 53 this.tOpacity = helper.parent.css("opacity"); 54 // copy tooltip into its own expando and remove the title 55 this.tooltipText = this.title; 56 $(this).removeAttr("title"); 57 // also remove alt attribute to prevent default tooltip in IE 58 this.alt = ""; 52 if (this.title) { 53 $.data(this, "tooltip", settings); 54 this.tOpacity = helper.parent.css("opacity"); 55 // copy tooltip into its own expando and remove the title 56 this.tooltipText = this.title; 57 $(this).removeAttr("title"); 58 // also remove alt attribute to prevent default tooltip in IE 59 this.alt = ""; 60 } 59 61 }) 60 62 .mouseover(save)
Note: See TracChangeset
for help on using the changeset viewer.