summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
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);