Commit 3830b38d authored by flothoni's avatar flothoni

modal; add a transparancy to view graphic when over the closing button

parent 24de926f
Pipeline #156643 passed with stages
in 19 minutes and 26 seconds
......@@ -2272,3 +2272,6 @@ form .form_label {
.list_lock_on {
color: #839496;
}
.transparancyMiddle {
opacity: 0.4;
}
......@@ -2273,3 +2273,6 @@ form .form_label {
.list_lock_on {
color: #657b83;
}
.transparancyMiddle {
opacity: 0.4;
}
......@@ -2616,4 +2616,8 @@ form {
}
.list_lock_on {
color: @default;
}
.transparancyMiddle {
opacity: 0.4
}
\ No newline at end of file
......@@ -92,11 +92,18 @@ Model.prototype = {
this.infoBox = document.createElement("div");
this.infoBox.className = "modal info-container";
this.infoBox.id = "modal_info_container";
var closeinfoBox = document.createElement("span");
closeinfoBox.className = "closeButton" ;
closeinfoBox.appendChild(icon('icon-cancel', ''));
closeinfoBox.onclick = function() {self.closeInfoBox()};
closeinfoBox.onmouseover = function() {
self.infoBox.classList.add("transparancyMiddle")
}
closeinfoBox.onmouseout = function() {
self.infoBox.classList.remove("transparancyMiddle")
}
this.infoBox.appendChild(closeinfoBox);
var div_info = document.createElement("div");
......@@ -2255,6 +2262,8 @@ changeAlleleNotation: function(alleleNotation) {
this.clone_info = -1;
this.infoBox.style.display = "none";
this.infoBox.lastElementChild.removeAllChildren();
var div = document.getElementById("modal-info-container")
div.classList.remove = "transparancy_middle"
},
......
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