Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 7626cb5d authored by Marc Duez's avatar Marc Duez

server : you can open a file from database in a new window

parent 42ab5a8b
......@@ -126,10 +126,12 @@
{{for row in db(db.fused_file.patient_id == request.vars["id"]).select() :}}
{{filename = vidjil_utils.anon(request.vars["id"], auth.user_id) + " (" + db.config[row.config_id].name + ")"}}
{{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}}' ) }" >
<a class="button2" href="index.html?patient={{=request.vars["id"]}}&config={{=row.config_id}}" type="text/html"
onclick="event.preventDefault()
if( event.which == 2 ) { window.open(this.href) }
else { db.load_data( { 'patient' : '{{=request.vars["id"]}}' , 'config' : {{=row.config_id}} }, '{{=filename}}' ) }" >
{{pass}}
{{=db.config[row.config_id].name}} </span>
{{=db.config[row.config_id].name}} </a>
{{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