Commit 4ca9b15d authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

builder.js fixed a bug where the value from the first info edit textarea could...

builder.js fixed a bug where the value from the first info edit textarea could be copied to the second
parent 2db9934c
......@@ -433,8 +433,7 @@ Builder.prototype = {
'patient_info_text',
function() {
//TODO id needs to be passed as param
var value = document.getElementById('edit_value').value;
self.m.info = value
self.m.info = this.value
self.post_save(self)
});
parent.appendChild(div_patient_info)
......@@ -606,7 +605,7 @@ Builder.prototype = {
'info_text',
function() {
//TODO id needs to be passed as param
var value = document.getElementById('edit_value').value;
var value = this.value;
if (typeof self.m.samples['info'] == 'undefined')
self.m.samples['info'] = new Array(self.m.samples.names.length, "");
self.m.samples['info'][self.m.t] = value
......
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