merge from trunk r1471:1472 into branch 1.6 (bug 193:quote in tooltip with ie)
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@1474 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
7f2fa28c7a
commit
8f9f9177b0
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue