kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Fixed DXCC context menu in CR
rodzic
f816a8e4ae
commit
385ac60a6e
|
@ -2177,8 +2177,11 @@ function handleContextMenu(ev)
|
|||
}
|
||||
}
|
||||
|
||||
let name
|
||||
if (ev.target.tagName == "TD") name = ev.target.getAttribute("name");
|
||||
let name = "";
|
||||
if (ev.target.tagName == "TD")
|
||||
{
|
||||
name = ev.target.getAttribute("name");
|
||||
}
|
||||
|
||||
if (name == "Callsign")
|
||||
{
|
||||
|
@ -2208,7 +2211,7 @@ function handleContextMenu(ev)
|
|||
g_targetITUz = ev.target.parentNode.id;
|
||||
g_ITUzMenu.popup(mouseX, mouseY);
|
||||
}
|
||||
else if (name && name.startsWith("DXCC"))
|
||||
else if (name.startsWith("DXCC"))
|
||||
{
|
||||
let dxcca = name.split("(");
|
||||
let dxcc = parseInt(dxcca[1]);
|
||||
|
|
|
@ -117,7 +117,7 @@ const ROSTER_COLUMNS = {
|
|||
compare: (a, b) => window.opener.myDxccCompare(a.callObj, b.callObj),
|
||||
tableData: (callObj) => ({
|
||||
title: window.opener.g_worldGeoData[window.opener.g_dxccToGeoData[callObj.dxcc]].pp,
|
||||
name: `${callObj.dxcc}`,
|
||||
name: `DXCC (${callObj.dxcc})`,
|
||||
rawAttrs: callObj.style.dxcc,
|
||||
html: [window.opener.g_dxccToAltName[callObj.dxcc], callObj.dxccSuffix].join(" ")
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue