Skip to content

Commit 83ebfb5

Browse files
authored
Merge pull request #2117 from phl0/reOrdereQSL
Align ordering of QSL to match with overview view
2 parents be70b37 + 0a0b0f8 commit 83ebfb5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

application/views/logbookadvanced/index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@
203203
<th>Name</th>
204204
<th>QSL Via</th>
205205
<th>QSL</th>
206-
<?php if ($this->session->userdata('user_lotw_name') != ""){
207-
echo '<th class="lotwconfirmation">LoTW</th>';
208-
} ?>
209206
<?php if ($this->session->userdata('user_eqsl_name') != ""){
210207
echo '<th class="eqslconfirmation">eQSL</th>';
211208
} ?>
209+
<?php if ($this->session->userdata('user_lotw_name') != ""){
210+
echo '<th class="lotwconfirmation">LoTW</th>';
211+
} ?>
212212
<th>QSL Msg</th>
213213
<th>DXCC</th>
214214
<th>State</th>

assets/js/sections/logbookadvanced.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ function updateRow(qso) {
2727
cells.eq(c++).text(qso.name);
2828
cells.eq(c++).text(qso.qslVia);
2929
cells.eq(c++).html(qso.qsl);
30-
if ($(".lotwconfirmation")[0]){
31-
cells.eq(c++).html(qso.lotw);
32-
}
3330
if ($(".eqslconfirmation")[0]){
3431
cells.eq(c++).html(qso.eqsl);
3532
}
33+
if ($(".lotwconfirmation")[0]){
34+
cells.eq(c++).html(qso.lotw);
35+
}
3636
cells.eq(c++).text(qso.qslMessage);
3737
cells.eq(c++).text(qso.dxcc);
3838
cells.eq(c++).text(qso.state);
@@ -82,12 +82,12 @@ function loadQSOTable(rows) {
8282
data.push(qso.name);
8383
data.push(qso.qslVia);
8484
data.push(qso.qsl);
85-
if ($(".lotwconfirmation")[0]){
86-
data.push(qso.lotw);
87-
}
8885
if ($(".eqslconfirmation")[0]){
8986
data.push(qso.eqsl);
9087
}
88+
if ($(".lotwconfirmation")[0]){
89+
data.push(qso.lotw);
90+
}
9191
data.push(qso.qslMessage);
9292
data.push(qso.dxcc+(qso.end == null ? '' : ' <span class="badge badge-danger">Deleted DXCC</span>'));
9393
data.push(qso.state);

src/QSLManager/QSO.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function getEqslString($data, $custom_date_format): string
372372
$eqslstring .= "\" data-toggle=\"tooltip\"";
373373
}
374374

375-
$eqslstring .= ' class="eqsl-' . (($data['COL_EQSL_QSL_SENT'] =='Y') ? 'green':'red') . '">&#9650;</span><span';
375+
$eqslstring .= ' class="eqsl-' . (($data['COL_EQSL_QSL_SENT'] =='Y') ? 'green':'red') . '">&#9650;</span><span ';
376376

377377
if ($data['COL_EQSL_QSL_RCVD'] == "Y") {
378378
$eqslstring .= "data-original-title=\"".$CI->lang->line('eqsl_short')." ".$CI->lang->line('general_word_received');

0 commit comments

Comments
 (0)