Commit acd9e9b1 authored by Martin Kuban's avatar Martin Kuban Committed by Markus Scheidgen
Browse files

fixes for info-system

parent f755a651
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -332,8 +332,7 @@ class Overview { ...@@ -332,8 +332,7 @@ class Overview {
this.similarityFinder.setSimilarityData(data.similarity); this.similarityFinder.setSimilarityData(data.similarity);
similarityFinderContainer.appendChild(this.similarityFinder.element); similarityFinderContainer.appendChild(this.similarityFinder.element);
this.similartyDataField = this.element.querySelector('.similarity-data-field'); this.similartyDataField = this.element.querySelector('.similarity-data-field');
InfoSys.addToInfoSystem(this.similartyDataField) InfoSys.addToInfoSystem(this.similartyDataField);
} }
} }
......
...@@ -4,13 +4,12 @@ class SimilarityFinder { ...@@ -4,13 +4,12 @@ class SimilarityFinder {
constructor() { constructor() {
this.folded = true; this.folded = true;
this.element = document.createElement('div'); this.element = document.createElement('span');
//this.element.className = className; //this.element.className = className;
this.element.setAttribute("info-sys-data","similar-materials")
this.element.style = "float : right; border: 2px solid #DDD; padding: 2px 2px 0px 3px;" this.element.style = "float : right; border: 2px solid #DDD; padding: 2px 2px 0px 3px;"
this.element.innerHTML+=` this.element.innerHTML+=`
<span style=" vertical-align: 30%;" info-sys-data="similar-materials"><b>Similar materials</b></span> <span style=" vertical-align: 30%;" ><b>Similar materials</b></span>
<img style="cursor: pointer" src="${util.IMAGE_DIR}folded.png" /> <img style="cursor: pointer" src="${util.IMAGE_DIR}folded.png" />
<div class="vr-download-panel" style="position: relative; display: none;"> <div class="vr-download-panel" style="position: relative; display: none;">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment