Remove QSO-column and Copy-button in lh-tab if qso-tab is disabled
This commit is contained in:
parent
35f37956b5
commit
bd6cf9dd7f
3 changed files with 22 additions and 13 deletions
|
@ -320,6 +320,12 @@
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{ className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 7 ] }
|
{ className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 7 ] }
|
||||||
],
|
],
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": [ 8 ],
|
||||||
|
"visible": qso > 0
|
||||||
|
}
|
||||||
|
],
|
||||||
'rowCallback': function(row, data, index){
|
'rowCallback': function(row, data, index){
|
||||||
// Calculating LOSS
|
// Calculating LOSS
|
||||||
if(parseInt(data[6].substring(0, data[6].indexOf("%"))) <= 5){
|
if(parseInt(data[6].substring(0, data[6].indexOf("%"))) <= 5){
|
||||||
|
|
|
@ -290,6 +290,8 @@ function getBER(logline) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAddToQSO(logline) {
|
function getAddToQSO(logline) {
|
||||||
|
retval = "";
|
||||||
|
if (qso > 0) {
|
||||||
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
|
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
|
||||||
name = "";
|
name = "";
|
||||||
if (callsign.indexOf("$") > 0) {
|
if (callsign.indexOf("$") > 0) {
|
||||||
|
@ -303,6 +305,7 @@ function getAddToQSO(logline) {
|
||||||
} else {
|
} else {
|
||||||
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + ' - ' + name + '" onclick="copyToQSO(\'' + callsign + ' - ' + name + '\')">Copy</button></div>';
|
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + ' - ' + name + '" onclick="copyToQSO(\'' + callsign + ' - ' + name + '\')">Copy</button></div>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
var dashboard_version = "2021-03-14 10:53:56";
|
var dashboard_version = "2021-03-24 17:56:17";
|
||||||
|
|
Loading…
Reference in a new issue