Changeset 1474


Ignore:
Timestamp:
Jul 15, 2006, 4:34:17 PM (18 years ago)
Author:
chrisaga
Message:

merge from trunk r1471:1472 into branch 1.6 (bug 193:quote in tooltip with ie)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_5/include/pngfix.js

    r939 r1474  
    22// Correctly handle PNG transparency in Win IE 5.5 or higher.
    33// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004
     4// 15-Jully-2006 : chrisaga use \" instead of ' in imgTitle
     5//               : to fix ' display in tooltips
     6//               : keep the alt attribute
    47
    58function correctPNG()
     
    1518                 var imgID = (img.id) ? "id='" + img.id + "' " : ""
    1619                 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
    17                  var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
     20                 //var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "alt=\"" + img.alt + "\" "
     21                 var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "";
     22                 imgTitle = imgTitle + (img.alt) ? "title=\"" + img.alt + "\" " : "";
    1823                 var imgStyle = "display:inline-block;" + img.style.cssText
    1924                 if (img.align == "left") imgStyle = "float:left;" + imgStyle
Note: See TracChangeset for help on using the changeset viewer.