Commit e4b0308c authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

segmenter.js: icon 'x' to unselect a clone in the segmenter

parent fc5e6482
......@@ -388,7 +388,13 @@ Segment.prototype = {
var seq_name = document.createElement('span');
seq_name.className = "nameBox";
seq_name.onclick = function () {
var del = document.createElement('img')
del.className = "delBox"
del.src = "images/delete.png"
seq_name.appendChild(del);
del.onclick = function () {
self.m.clone(cloneID).unselect();
}
seq_name.appendChild(document.createTextNode(this.m.clone(cloneID).getName()));
......
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