mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #2985 from int2001/dok_upd
Use HamQTH-DOK lookup as well for "Update from Callbook"
This commit is contained in:
@@ -947,6 +947,10 @@ class Logbookadvanced_model extends CI_Model {
|
||||
$updatedData['COL_CQZ'] = $callbook['cqz'];
|
||||
$updated = true;
|
||||
}
|
||||
if (!empty($callbook['darc_dok']) && empty($qso['COL_DARC_DOK'])) {
|
||||
$updatedData['COL_DARC_DOK'] = strtoupper($callbook['darc_dok']);
|
||||
$updated = true;
|
||||
}
|
||||
if (empty($qso['COL_CONT'])) {
|
||||
$updatedData['COL_CONT'] = $this->logbook_model->getContinent($callbook['dxcc']);
|
||||
$updated = true;
|
||||
|
||||
@@ -254,6 +254,11 @@ function single_callbook_update() {
|
||||
fill_if_empty('#qsl-via', data.qsl_manager);
|
||||
fill_if_empty('select[name="input_state_edit"]', data.callsign_state);
|
||||
fill_if_empty('#stationCntyInputEdit', data.callsign_us_county);
|
||||
if (data.callsign_darc_dok && $('#darc_dok_edit').val() == '') {
|
||||
var dok_selectize = $('#darc_dok_edit')[0].selectize;
|
||||
dok_selectize.addOption({ name: data.callsign_darc_dok });
|
||||
dok_selectize.setValue(data.callsign_darc_dok, false);
|
||||
}
|
||||
|
||||
$('#update_from_callbook').prop("disabled", false).removeClass("running");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user