Commit 801ebb2a authored by Tatiana Rocher's avatar Tatiana Rocher

help : send mail to team

parent 67916323
......@@ -242,7 +242,15 @@
<div id="logo" style="float: right;" onclick="console.log({'type': 'popup', 'default':'welcome'})">Vidjil <span class='logo'>(beta)</span></div>
<div class="menu" style="float: right"> <a href="help" target="_blank">help</a></div>
<div class="menu" style="float: right" onmouseover="showSelector('helpSelector');"> help
<div id="helpSelector" class="selector"><div>
<a class="buttonSelector" href="help" target="_blank">help</a>
<a class="buttonSelector getHelp" onclick="report.sendMail()">send email</a>
<!--
<form action="mailto:tatiana.rocher@gmail.com?subject=Demande assistance" name="envoi" methode=POST enctype="text/plain"> !-->
</div></div>
</div>
<div style="float: right" class="menu" onmouseover="showSelector('paletteSelector');"> palette
<div id="paletteSelector" class="selector"><div>
......
......@@ -565,6 +565,26 @@ Report.prototype = {
}
return clone
},
sendMail : function() {
var clones = ''
var list = m.getSelected()
if (list.length>0){
clones += "clones selectionnes : \n" + list.length
for (var i=0; i<list.length; i++){
clones += m.clone(list[i]).getFasta() + '\n'
}
}/**/
var link = "mailto:team@vidjil.org"
+ "?cc="
+ "&subject=" + escape("Demande d'assistance Vidjil")
+ "&body=" + escape("page actuelle : " + window.location.href + '\n' + clones)
;
window.location.href = link;
}
}
......
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