Commit 6cfcd554 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

builder.js clickable patient name

Clicking the patient name will now open the patient info page
parent fc7556ad
......@@ -618,6 +618,9 @@ Builder.prototype = {
var div_data_file = document.createElement('div');
//div_data_file.id = "info_data_file"
div_data_file.appendChild(document.createTextNode(this.m.getPrintableAnalysisName()));
div_data_file.onclick = function() {
db.call('patient/info', {'id' : m.patient_id});
}
document.title = this.m.getPrintableAnalysisName()
parent.appendChild(div_data_file)
},
......
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