Commit 1a02b2d8 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

builder.js: open patient only if defined

When comparing samples, the open patient, doesn't work and creates a server
error.
parent ad976a4c
......@@ -646,6 +646,7 @@ Builder.prototype = {
menu_box.className = "menu_box";
interm.appendChild(menu_box);
if (m.sample_set_id != 'undefined') {
var open_patient = document.createElement('a');
open_patient.className = "buttonSelector";
open_patient.appendChild(document.createTextNode("open patient"));
......@@ -661,6 +662,7 @@ Builder.prototype = {
db.save_analysis();
}
menu_box.appendChild(save_analysis);
}
$(parent).on('mouseover', function() {
showSelector('patientSelector');
......
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