mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Unlinking now re-adds location back to dropdown
This commit is contained in:
@@ -548,6 +548,13 @@ function unLinkLocations(containerid, locationid) {
|
||||
success: function (data) {
|
||||
jdata=JSON.parse(data);
|
||||
if (jdata.success == 1) {
|
||||
let row = $('#locationid_'+locationid);
|
||||
let cells = row.find('td');
|
||||
var items = [];
|
||||
items.push(
|
||||
'<option value="' + locationid + '">' + cells.eq(0).text() + ' (Callsign: ' + cells.eq(1).text() + ' DXCC: ' + cells.eq(2).text() + ')</option>'
|
||||
);
|
||||
$('#StationLocationSelect').append(items.join( "" ));
|
||||
$('#locationid_'+locationid).remove();
|
||||
} else {
|
||||
$("#flashdata").data(jdata.flashdata);
|
||||
|
||||
Reference in New Issue
Block a user