Commit b55fd180 authored by Marc Duez's avatar Marc Duez

server : open in new window work (click middle)

parent ddf250aa
......@@ -125,7 +125,10 @@
see the result:
{{for row in db(db.fused_file.patient_id == request.vars["id"]).select() :}}
{{filename = db.patient[request.vars["id"]].first_name + " " + db.patient[request.vars["id"]].last_name + " (" + db.config[row.config_id].name + ")"}}
{{if row.fused_file is not None :}}<span class="button2" onclick="db.load_data( { 'patient' : '{{=request.vars["id"]}}' , 'config' : {{=row.config_id}} }, '{{=filename}}' )" >{{pass}}
{{if row.fused_file is not None :}}
<span class="button2" onclick="if( event.which == 2 ) { window.open('index.html?patient={{=request.vars["id"]}}&config={{=row.config_id}}') }
else{db.load_data( { 'patient' : '{{=request.vars["id"]}}' , 'config' : {{=row.config_id}} }, '{{=filename}}' ) }" >
{{pass}}
{{=db.config[row.config_id].name}} </span>
{{pass}}
</div>
......
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