mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add DCL to column in LBA
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
\"county\":{\"show\":\"true\"},
|
||||
\"qth\":{\"show\":\"true\"},
|
||||
\"frequency\":{\"show\":\"true\"},
|
||||
\"dcl\":{\"show\":\"true\"},
|
||||
}";
|
||||
}
|
||||
$current_opts = json_decode($options);
|
||||
@@ -171,6 +172,10 @@
|
||||
echo "\nvar o_template = { frequency: {show: 'true'}};";
|
||||
echo "\nuser_options={...user_options, ...o_template};";
|
||||
}
|
||||
if (!isset($current_opts->dcl)) {
|
||||
echo "\nvar o_template = { dcl: {show: 'true'}};";
|
||||
echo "\nuser_options={...user_options, ...o_template};";
|
||||
}
|
||||
|
||||
|
||||
foreach ($mapoptions as $mo) {
|
||||
@@ -735,6 +740,9 @@ $options = json_decode($options);
|
||||
} ?>
|
||||
<?php if (($options->qrz->show ?? "true") == "true") {
|
||||
echo '<th class="qrz">' . __("QRZ") . '</th>';
|
||||
} ?>
|
||||
<?php if (($options->dcl->show ?? "true") == "true") {
|
||||
echo '<th>' . __("DCL") . '</th>';
|
||||
} ?>
|
||||
<?php if (($options->qslmsgs->show ?? "false") == "true") {
|
||||
echo '<th>' . __("QSL Msg (S)") . '</th>';
|
||||
|
||||
@@ -89,6 +89,9 @@ function updateRow(qso) {
|
||||
if ((user_options.qrz.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.qrz);
|
||||
}
|
||||
if ((user_options.dcl.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.dcl);
|
||||
}
|
||||
if ((user_options.qslmsgs.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.qslMessage);
|
||||
}
|
||||
@@ -274,6 +277,9 @@ function loadQSOTable(rows) {
|
||||
if ((user_options.qrz.show ?? 'true') == "true"){
|
||||
data.push(qso.qrz);
|
||||
}
|
||||
if ((user_options.dcl.show ?? 'true') == "true"){
|
||||
data.push(qso.dcl);
|
||||
}
|
||||
if ((user_options.qslmsgs.show ?? 'true') == "true"){
|
||||
data.push(qso.qslMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user