summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-09-17 18:29:46 +0000
committerthomascube <thomas@roundcube.net>2007-09-17 18:29:46 +0000
commit104ee38b205d125a002b04adb704178897bae057 (patch)
tree227ba82259048f20b57c02cd84d51fd9a6938838 /program/js/app.js
parent13696f96872d1166a182772270a8203971923e5e (diff)
Respect PNG fix on IE when switching buttons
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 7bc0fb310..506683502 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2815,8 +2815,12 @@ function rcube_webmail()
obj = document.getElementById(button.id);
// get default/passive setting of the button
- if (obj && button.type=='image' && !button.status)
+ if (obj && button.type=='image' && !button.status) {
button.pas = obj._original_src ? obj._original_src : obj.src;
+ // respect PNG fix on IE browsers
+ if (obj.runtimeStyle && obj.runtimeStyle.filter && obj.runtimeStyle.filter.match(/src=['"]([^'"]+)['"]/))
+ button.pas = RegExp.$1;
+ }
else if (obj && !button.status)
button.pas = String(obj.className);