1
0
Fork 0

Remove QSO-column and Copy-button in lh-tab if qso-tab is disabled

main
Kim Huebel 4 years ago
parent 35f37956b5
commit bd6cf9dd7f

@ -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…
Cancel
Save