thomascube
2007-09-17 104ee38b205d125a002b04adb704178897bae057
Respect PNG fix on IE when switching buttons

1 files modified
6 ■■■■ changed files
program/js/app.js 6 ●●●● patch | view | raw | blame | history
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);