mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Don't show export table fetching message when auto-refreshing
This commit is contained in:
parent
26fb9a6803
commit
3a1b4e34aa
1 changed files with 8 additions and 6 deletions
|
@ -163,16 +163,18 @@ export_table_options = {
|
||||||
//$('html,body').scrollTop(0);
|
//$('html,body').scrollTop(0);
|
||||||
$('#ajaxMsg').fadeOut();
|
$('#ajaxMsg').fadeOut();
|
||||||
|
|
||||||
if (timer) {
|
if (export_processing_timer) {
|
||||||
clearTimeout(timer);
|
clearTimeout(export_processing_timer);
|
||||||
}
|
}
|
||||||
if ($('.export-processing').length) {
|
if ($('.export-processing').length) {
|
||||||
timer = setTimeout(redrawExportTable.bind(null, false), 2000);
|
export_processing_timer = setTimeout(redrawExportTable.bind(null, false), 2000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"preDrawCallback": function(settings) {
|
"preDrawCallback": function(settings) {
|
||||||
var msg = "<i class='fa fa-refresh fa-spin'></i> Fetching rows...";
|
if (!export_processing_timer) {
|
||||||
showMsg(msg, false, false, 0)
|
var msg = "<i class='fa fa-refresh fa-spin'></i> Fetching rows...";
|
||||||
|
showMsg(msg, false, false, 0)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"rowCallback": function (row, rowData, rowIndex) {
|
"rowCallback": function (row, rowData, rowIndex) {
|
||||||
if (rowData['complete'] === 0) {
|
if (rowData['complete'] === 0) {
|
||||||
|
@ -204,4 +206,4 @@ function redrawExportTable(paging) {
|
||||||
export_table.draw(paging);
|
export_table.draw(paging);
|
||||||
}
|
}
|
||||||
|
|
||||||
var timer;
|
var export_processing_timer;
|
Loading…
Add table
Add a link
Reference in a new issue