Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Mar 23, 2017 7:20 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Can not view Graph Tree under IE7
PostPosted: Sun Jun 27, 2010 10:57 pm 
Offline

Joined: Tue Jun 01, 2010 11:38 pm
Posts: 6
Location: China
IE display a JS error:
tree_component.css.cssRules is null or not a object


------------------------------revision info(get from google)-------------------------------------
Path: include/js/jstree/jquery.tree.js
Name: jquery.tree.js
URL: svn://svn.cacti.net/cacti/cacti/branche ... ry.tree.js
Repository Root: svn://svn.cacti.net/cacti
Last Changed Author: thewitness
Last Changed Rev: 5924
Last Changed Date: 2010-05-14 21:17:37 +0800 (Fri, 14 May 2010)


------------------------------Code Diff-------------------------------------

iff --git a/include/js/jstree/jquery.tree.js b/include/js/jstree/jquery.tree.js
index e6bbd24..1f9c0eb 100644
--- a/include/js/jstree/jquery.tree.js
+++ b/include/js/jstree/jquery.tree.js
@@ -1774,13 +1774,14 @@
return tree_component.get_css(rule_name, true);
};
tree_component.add_sheet = function(opts) {
+ var tmp;
if(opts.str) {
- var tmp = document.createElement("style");
- tmp.type = "text/css";
+ tmp = document.createElement("style");
+ tmp.setAttribute('type',"text/css"); //tmp.type = "text/css";
if(tmp.styleSheet) tmp.styleSheet.cssText = opts.str;
else tmp.appendChild(document.createTextNode(opts.str));
document.getElementsByTagName("head")[0].appendChild(tmp);
- return tmp.sheet;
+ return tmp.sheet || tmp.styleSheet;
}
if(opts.url) {
if(document.createStyleSheet) {


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group