diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2014-04-27 17:01:08 +0200 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2014-04-27 17:01:08 +0200 |
commit | eef2f2bb5c705079ae1186509063bc9e63c85bc0 (patch) | |
tree | 59abeecaa090e2c84b0ed3cbd8db83c48852f45b | |
parent | b4599f7b557902f6a3eb7aaa7facb86c9d1349cc (diff) | |
parent | 5cd010cb008b6e28988de5a5b7e9e769eea80907 (diff) |
Merge pull request #521 from david0/fix-issue-520
IE7+IE8 compatibility (fixes #520)
-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 4debf409..3cb0e2da 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -1120,7 +1120,13 @@ Prado.StyleSheetManagerClass = jQuery.klass(Prado.AssetManagerClass, { 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); |