Skip to content

Commit

Permalink
fix bug 193 : pb with quote in tooltips with IE
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@1472 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
chrisaga committed Jul 15, 2006
1 parent 12f7f1e commit 61ca501
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/pngfix.js
@@ -1,6 +1,9 @@

// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004
// 15-Jully-2006 : chrisaga use \" instead of ' in imgTitle
// : to fix ' display in tooltips
// : keep the alt attribute

function correctPNG()
{
Expand All @@ -14,7 +17,9 @@ function correctPNG()
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
//var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "alt=\"" + img.alt + "\" "
var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "";
imgTitle = imgTitle + (img.alt) ? "title=\"" + img.alt + "\" " : "";
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
Expand Down

0 comments on commit 61ca501

Please sign in to comment.