aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2005-11-19 23:46:18 +0000
committerchrisaga <chrisaga@piwigo.org>2005-11-19 23:46:18 +0000
commita2910859873e279ed56da45f2a0dff4020accaa6 (patch)
treed1df5264151ddf0624a5d92aa8bc77e74ede75db /include
parent1ba53a2ffa47e9e6c860b5d3d285b4d22245e815 (diff)
- report bug 206 correction and some template improvement from branch 1.5
- feature 195 : add an "Admin" link under "Home" in the menu bar of the admin page git-svn-id: http://piwigo.org/svn/trunk@948 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_html.inc.php4
-rw-r--r--include/pngfix.js7
2 files changed, 7 insertions, 4 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index bfd3957ff..c08ca525e 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -48,8 +48,8 @@ function get_icon( $date )
$title .= $user['recent_period'];
$title .= '&nbsp;'.$lang['days'];
$size = getimagesize( $icon_url );
- $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
- $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
+ $output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;';
+ $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />';
}
return $output;
}
diff --git a/include/pngfix.js b/include/pngfix.js
index ba1a099ae..a543c09cb 100644
--- a/include/pngfix.js
+++ b/include/pngfix.js
@@ -6,7 +6,9 @@ function correctPNG()
{
for(var i=0; i<document.images.length; i++)
{
- var img = document.images[i]
+ var img = document.images[i]
+ if (img.className == "button" || img.className == "icon")
+ {
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
@@ -24,6 +26,7 @@ function correctPNG()
img.outerHTML = strNewHTML
i = i-1
}
+ }
}
}
-window.attachEvent("onload", correctPNG); \ No newline at end of file
+window.attachEvent("onload", correctPNG);