From 104ee38b205d125a002b04adb704178897bae057 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 17 Sep 2007 14:29:46 -0400
Subject: [PATCH] Respect PNG fix on IE when switching buttons

---
 program/js/app.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 7bc0fb3..5066835 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2815,8 +2815,12 @@
       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);
 

--
Gitblit v1.9.1