Skip to content

Commit

Permalink
Merge pull request wavelog#1437 from phl0/updateEmail
Browse files Browse the repository at this point in the history
Also fill email upon single callbook update
  • Loading branch information
phl0 authored Jan 2, 2025
2 parents 11b932d + 2a20023 commit 3fa0cb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/sections/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function single_callbook_update() {
fill_if_empty('#ituz_edit', data.dxcc.ituz);
}
fill_if_empty('#locator_edit', data.callsign_qra);
fill_if_empty('#email_edit', data.callsign_email);
// fill_if_empty('#image', data.image); Not in use yet, but may in future
fill_if_empty('#iota_ref_edit', data.callsign_iota);
fill_if_empty('#name_edit', data.callsign_name);
Expand Down Expand Up @@ -213,7 +214,7 @@ async function fill_if_empty(field, data) {
}

// catch special case for grid
if (field == "#locator_edit") {
if (field == "#locator_edit" && $(field).val() == '') {
$(field).val(data.toUpperCase()).css('border', border_color).trigger('change');
return;
}
Expand Down

0 comments on commit 3fa0cb9

Please sign in to comment.