Skip to content
Snippets Groups Projects
Commit f2661f65 authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

cookies

parent 5baf01a5
No related branches found
No related tags found
No related merge requests found
......@@ -253,12 +253,11 @@ $('#but-variant').on('change', function(){
// set last tab in cookie
$('#tabs a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
Cookies.set('tab', '#' + e.target.id);
e.target
$.cookie('tab', $(e.target).attr('href'));
})
// show lat iopenned tab or first one
if(Cookie.get('tab')){
$(Cookie.get('tab')).tab('show');
if($.cookie('tab')){
$('#tabs li > a[href=' + $.cookie('tab') + ']').tab('show')
} else {
$('#tabs li:first > a').tab('show');
}
......
......@@ -42,7 +42,6 @@ rule REPORT:
"lib/bootstrap.min.css",
"lib/bootstrap.min.js",
"lib/imp.js",
] +
expand(["{dir}/workflow.png", "{dir}/workflow.pdf"], dir=OUTPUTDIR)
output:
......@@ -56,7 +55,12 @@ rule REPORT:
towrite = json.dumps(config)
whandle.write("IMP_CONFIG = %s;" % towrite)
shell("cp {input[0]} {params.outdir}/REPORT.html")
shell("cp {input[1:]} {params.outdir}")
shell("cp -f {input[1]} {params.outdir}")
shell("cp -f {input[2]} {params.outdir}")
shell("cp -f {input[3]} {params.outdir}")
shell("cp -f {input[4]} {params.outdir}")
shell("cp -f {input[5]} {params.outdir}")
shell("cp -f {input[6]} {params.outdir}")
rule REPORT2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment