projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c77e8f
)
IE 7+ JS fix
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 9 Feb 2010 06:15:44 +0000
(23:15 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 9 Feb 2010 06:15:44 +0000
(23:15 -0700)
imp/js/imp.js
patch
|
blob
|
history
diff --git
a/imp/js/imp.js
b/imp/js/imp.js
index
267886d
..
d9c5b93
100644
(file)
--- a/
imp/js/imp.js
+++ b/
imp/js/imp.js
@@
-63,7
+63,12
@@
document.observe('dom:loaded', function() {
} else if (img.getAttribute('background')) {
img.setAttribute('background', src);
} else if (img.style.backgroundImage) {
- img.style.setProperty('background-image', 'url(' + src + ')', '');
+ if (img.style.setProperty) {
+ img.style.setProperty('background-image', 'url(' + src + ')', '');
+ } else {
+ // IE workaround
+ img.style.backgroundImage = 'url(' + src + ')';
+ }
}
});