summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-09-17 18:29:46 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-09-17 18:29:46 +0000
commit40305a44d72a433a9d5cec42096295c5f6e0d762 (patch)
tree5e400c169eef079d8f7cf022dd576313fcc9e273
parentc9368983cf46323bf4d816986f2ae0324e4d4d2c (diff)
Respect PNG fix on IE when switching buttons
git-svn-id: https://svn.roundcube.net/trunk@800 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 7bc0fb310..506683502 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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);