Commit f0d3cf2c authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Disable export of fasta files in webserver mode for gallery items (to prevent...

Disable export of fasta files in webserver mode for gallery items (to prevent send mail to the author)
parent c2299974
......@@ -13,12 +13,9 @@ dgenies.result.init = function(id_res) {
};
dgenies.result.add_to_list = function () {
console.log("pass", dgenies.result.id_res);
let cookies = $.cookie("results");
cookies = cookies !== undefined ? cookies.split("|") : [];
console.log(cookies);
if (cookies.indexOf(dgenies.result.id_res) === -1) {
console.log("oui");
cookies.splice(0, 0, dgenies.result.id_res);
dgenies.save_cookies(cookies);
dgenies.update_results(cookies);
......
......@@ -48,8 +48,10 @@
<option value="1">Svg</option>
<option value="2">Png</option>
<option value="3">Paf file</option>
<option value="4">Query Fasta</option>
<option value="8">Query assembled as reference</option>
{% if not is_gallery %}
<option value="4">Query Fasta</option>
<option value="8">Query assembled as reference</option>
{% endif %}
<option value="5">Association table</option>
<option value="6">No match queries</option>
<option value="7">No match targets</option>
......
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