Fix export txt/csv (le tableau doit être visible)

This commit is contained in:
Luc Didry 2017-07-18 12:08:42 +02:00
parent 0a24ec04bd
commit 2d1bffa0a3

View file

@ -917,6 +917,7 @@ $(function() {
}); });
$('#export-txt').click(function() { $('#export-txt').click(function() {
$('.nav-tabs a[href="#scrumblr"]').tab('show');
socket.json.send({ socket.json.send({
action: 'exportTxt', action: 'exportTxt',
data: ($('.col').length !== 0) ? $('.col').css('width').replace('px', '') : null data: ($('.col').length !== 0) ? $('.col').css('width').replace('px', '') : null
@ -924,6 +925,7 @@ $(function() {
}) })
$('#export-csv').click(function() { $('#export-csv').click(function() {
$('.nav-tabs a[href="#scrumblr"]').tab('show');
socket.json.send({ socket.json.send({
action: 'exportCsv', action: 'exportCsv',
data: ($('.col').length !== 0) ? $('.col').css('width').replace('px', '') : null data: ($('.col').length !== 0) ? $('.col').css('width').replace('px', '') : null