Commit 8b7d0221 authored by Marc Duez's avatar Marc Duez

builder.js : system box, disable color for unselected system

parent d502b460
......@@ -514,6 +514,7 @@ line {
color: @select;
font-family: monospace;
font-size: 80%;
background: @border;
}
.systemBox {
......
......@@ -647,7 +647,7 @@ Builder.prototype = {
checkbox.onchange = function () {
m.update_selected_system()
}
var span_system = this.build_systemBox(key)
span_system.className = "systemBoxMenu";
......@@ -672,11 +672,13 @@ Builder.prototype = {
},
build_systemBox: function (system){
var span = document.createElement('span')
span.className = "systemBox";
if ((typeof system != 'undefined')){
span.appendChild(document.createTextNode(this.m.germlineList.getShortcut(system)));
span.style.background = this.m.germlineList.getColor(system)
if (this.m.system_selected.indexOf(system) == -1)
span.style.background = this.m.germlineList.getColor(system)
span.title = system
}else{
span.appendChild(document.createTextNode("?"));
......
......@@ -135,7 +135,6 @@ Graph.prototype = {
this.initData();
this.initClones();
this.initRes();
this.resize();
},
......
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