Browse Source

TVIZ change

apprausch 5 years ago
parent
commit
0727a0c246
1 changed files with 6 additions and 2 deletions
  1. 6 2
      mobile app/www/certaintrust/certainTrustTViz.js

+ 6 - 2
mobile app/www/certaintrust/certainTrustTViz.js

@@ -47,8 +47,12 @@ var CertainTrustTViz = function(data, config) {
 	this.ID = config.id;
 	this.config = config;
 
-	var element = document.createElement('div');
-	element.setAttribute('id', this.ID);
+	var element = document.getElementById(this.ID);
+	if(!element) {
+		element = document.createElement('div');
+		element.setAttribute('id', this.ID);
+	}
+	
 	var dom = this.certainTrusts[0]._insertElement(config, element);
 
 	this.update();