Colorscheme also for DXCC
这个提交包含在:
父节点
db87530f37
当前提交
b21f85106c
共有 1 个文件被更改,包括 14 次插入 和 10 次删除
|
|
@ -386,18 +386,20 @@ function changebadge(entityname) {
|
|||
$.getJSON(base_url + 'index.php/logbook/jsonlookupdxcc/' + convert_case(entityname) + '/SAT/0/0', function(result)
|
||||
{
|
||||
|
||||
$('#callsign_info').removeClass("lotw_info_orange");
|
||||
$('#callsign_info').removeClass("badge-secondary");
|
||||
$('#callsign_info').removeClass("badge-success");
|
||||
$('#callsign_info').removeClass("badge-danger");
|
||||
$('#callsign_info').attr('title', '');
|
||||
|
||||
if (result.workedBefore)
|
||||
{
|
||||
if (result.confirmed) {
|
||||
$('#callsign_info').addClass("badge-success");
|
||||
$('#callsign_info').attr('title', 'DXCC was already worked and confirmed in the past on this band and mode!');
|
||||
} else if (result.workedBefore) {
|
||||
$('#callsign_info').addClass("badge-success");
|
||||
$('#callsign_info').addClass("lotw_info_orange");
|
||||
$('#callsign_info').attr('title', 'DXCC was already worked in the past on this band and mode!');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$('#callsign_info').addClass("badge-danger");
|
||||
$('#callsign_info').attr('title', 'New DXCC, not worked on this band and mode!');
|
||||
}
|
||||
|
|
@ -406,18 +408,20 @@ function changebadge(entityname) {
|
|||
$.getJSON(base_url + 'index.php/logbook/jsonlookupdxcc/' + convert_case(entityname) + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
|
||||
{
|
||||
// Reset CSS values before updating
|
||||
$('#callsign_info').removeClass("lotw_info_orange");
|
||||
$('#callsign_info').removeClass("badge-secondary");
|
||||
$('#callsign_info').removeClass("badge-success");
|
||||
$('#callsign_info').removeClass("badge-danger");
|
||||
$('#callsign_info').attr('title', '');
|
||||
|
||||
if (result.workedBefore)
|
||||
{
|
||||
if (result.confirmed) {
|
||||
$('#callsign_info').addClass("badge-success");
|
||||
$('#callsign_info').attr('title', 'DXCC was already worked and confirmed in the past on this band and mode!');
|
||||
} else if (result.workedBefore) {
|
||||
$('#callsign_info').addClass("badge-success");
|
||||
$('#callsign_info').addClass("lotw_info_orange");
|
||||
$('#callsign_info').attr('title', 'DXCC was already worked in the past on this band and mode!');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$('#callsign_info').addClass("badge-danger");
|
||||
$('#callsign_info').attr('title', 'New DXCC, not worked on this band and mode!');
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用