summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-02-22 08:41:08 +0000
committersvncommit <devs@roundcube.net>2007-02-22 08:41:08 +0000
commit0cf09d1ae7f4ef39e9fa1080472a2f0e0be3c8e0 (patch)
treeb0176e2dab04ba134c681890accd61131730a231 /skins
parent789eba3a2dff7e8fac3ede20a353dd7d1f35782d (diff)
Fix JS error when creating new folder (closes #1484204).
Diffstat (limited to 'skins')
-rw-r--r--skins/default/pngbehavior.htc4
1 files changed, 2 insertions, 2 deletions
diff --git a/skins/default/pngbehavior.htc b/skins/default/pngbehavior.htc
index 24bfd4c79..f19aad33e 100644
--- a/skins/default/pngbehavior.htc
+++ b/skins/default/pngbehavior.htc
@@ -3,7 +3,7 @@
<script>
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
-var realSrc;
+var realSrc = null;
var blankSrc = "skins/default/images/blank.gif";
if (supported) fixImage();
@@ -35,7 +35,7 @@ function fixImage() {
}
// test for png
- if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
+ if ( realSrc && /\.png$/.test( realSrc.toLowerCase() ) ) {
// set blank image
element.src = blankSrc;
// set filter