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": [
{ className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 7 ] }
],
"columnDefs": [
{
"targets": [ 8 ],
"visible": qso > 0
}
],
'rowCallback': function(row, data, index){
// Calculating LOSS
if(parseInt(data[6].substring(0, data[6].indexOf("%"))) <= 5){

@ -290,18 +290,21 @@ function getBER(logline) {
}
function getAddToQSO(logline) {
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
name = "";
if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (name == "" ) {
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + '" onclick="copyToQSO(\'' + callsign + '\')">Copy</button></div>';
} 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 = "";
if (qso > 0) {
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
name = "";
if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (name == "" ) {
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + '" onclick="copyToQSO(\'' + callsign + '\')">Copy</button></div>';
} 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>';
}
}
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