Commit d2b8f72f authored by Thonier Florian's avatar Thonier Florian

list.js; add an id to some div

link to #3951
parent 30a7d5bc
......@@ -47,7 +47,6 @@ function List(id_list, id_data, model, database) {
View.call(this, model);
this.db = database;
this.m.list_clones = this
this.id = id_list; //ID de la div contenant la liste
this.id_data = id_data;
......@@ -248,6 +247,7 @@ List.prototype = {
var a_split = document.createElement('a')
a_split.className = "button"
a_split.appendChild(icon('icon-plus', 'Show all subclones'))
a_split.id = "list_split_all"
a_split.onclick = function () {
self.m.split_all(true)
}
......@@ -255,6 +255,7 @@ List.prototype = {
var a_unsplit = document.createElement('a')
a_unsplit.className = "button"
a_unsplit.appendChild(icon('icon-minus', 'Hide all subclones'))
a_unsplit.id = "list_unsplit_all"
a_unsplit.onclick = function () {
self.m.split_all(false)
}
......
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