diff options
author | David <david0@github.com> | 2014-04-25 14:59:40 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2014-08-22 12:41:56 +0200 |
commit | bb486d4e6fc271107ee3d708269f01661ac4de0d (patch) | |
tree | 9b8c50b6705370877e01e4338ff7364263f3b248 | |
parent | cc303340448e95c7fb6bae58f3228566aa2f56ac (diff) |
IE7+IE8 compatibility (fixes #520)
(cherry picked from commit 5cd010cb008b6e28988de5a5b7e9e769eea80907)
Conflicts:
framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
-rw-r--r-- | framework/Web/Javascripts/source/prado/activecontrols/ajax3.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index e19f5d49..648f3e76 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -1154,7 +1154,13 @@ if (typeof(Prado.AssetManagerClass)=="undefined") { createStyleSheetCode: function(code) { var asset = document.createElement('style'); asset.setAttribute('type', 'text/css'); - asset.innerText = code; + + if(asset.styleSheet) + asset.styleSheet.cssText = code; // IE7+IE8 + else { + var cssCodeNode = document.createTextNode(code); + asset.appendChild(cssCodeNode); + } var head = document.getElementsByTagName('head')[0]; head.appendChild(asset); |