Commit 861f979d authored by Marc Duez's avatar Marc Duez
Browse files

[wip] menu

parent fef87bae
......@@ -370,8 +370,8 @@ Builder.prototype = {
//TODO need to build complete Selector
build_clusterSelector: function () {
var self = this;
var clusterSelector = document.getElementById("clusterby_button")
/*
var clusterSelector = document.getElementById("cluster_menu")
clusterSelector.innerHTML = "";
if (self.m.clones[0]._target){
......@@ -400,15 +400,7 @@ Builder.prototype = {
clonotype.appendChild(document.createTextNode("clonotype"));
clusterSelector.appendChild(clonotype)
}
if (self.m.clones[0].germline){
var system = document.createElement('a');
system.className = "buttonSelector"
system.onclick = function () { m.clusterBy(function(id){return m.clone(id).getSystem()});}
system.appendChild(document.createTextNode("system"));
clusterSelector.appendChild(system)
}
*/
},
toggle_left_container: function () {
......
......@@ -601,12 +601,14 @@ List.prototype = {
if ((this.m.clone(list[i]).isActive() && this.m.clusters[list[i]].length != 0) || this.m.clone(list[i]).id == "other") {
div.innerHTML = '';
div.className = "list";
if (this.m.clone(list[i]).isSelected()) {
div.className = "list list_select";
} else {
div.className = "list";
}
$(div).addClass("list_select");
}
if (this.m.focus ==list[i]) {
$(div).addClass("list_focus");
}
var div2 = document.createElement('div');
this.div_elem(div2, list[i]);
......
......@@ -21,6 +21,15 @@
* along with "Vidjil". If not, see <http://www.gnu.org/licenses/>
*/
function Menu () {
}
Menu.prototype = {
}
function initMenu () {
if (typeof config != 'undefined') {
......
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