summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDavid <david0@github.com>2014-04-25 14:59:40 +0200
committerDavid <david0@github.com>2014-04-25 15:21:44 +0200
commit5cd010cb008b6e28988de5a5b7e9e769eea80907 (patch)
tree59abeecaa090e2c84b0ed3cbd8db83c48852f45b /framework
parentb4599f7b557902f6a3eb7aaa7facb86c9d1349cc (diff)
IE7+IE8 compatibility (fixes #520)
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/ajax3.js8
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);