Commit be74a233 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

builder.js replace button with dblclick

Removed the edit button for sequence_file names and added double click
event listener
parent 93f7d622
...@@ -418,16 +418,6 @@ Builder.prototype = { ...@@ -418,16 +418,6 @@ Builder.prototype = {
var sample_div = document.createElement("div") var sample_div = document.createElement("div")
sample_div.className = "sample_details" sample_div.className = "sample_details"
var editTimeName = self.createClickableElem('span',
[document.createTextNode("edit")],
"",
"button_right",
function () {
self.edit(this, "names");
}
);
sample_div.appendChild(editTimeName)
var infoTime = self.createClickableElem('span', var infoTime = self.createClickableElem('span',
[document.createTextNode("Info")], [document.createTextNode("Info")],
"", "",
...@@ -440,6 +430,11 @@ Builder.prototype = { ...@@ -440,6 +430,11 @@ Builder.prototype = {
var div_point = this.build_info_line("info_point", this.m.getStrTime(this.m.t, "name") ) var div_point = this.build_info_line("info_point", this.m.getStrTime(this.m.t, "name") )
div_point.className += " centered" div_point.className += " centered"
$(div_point).on("dblclick", function() {
self.edit(this, "names");
});
sample_div.appendChild(div_point) sample_div.appendChild(div_point)
var div_date = this.build_info_line("info_date", this.m.getStrTime(this.m.t, "sampling_date") ) var div_date = this.build_info_line("info_date", this.m.getStrTime(this.m.t, "sampling_date") )
......
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