Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Weblate
2026-01-26 09:33:34 +00:00

View File

@@ -2383,14 +2383,22 @@ function saveOptions() {
column.search(val ? val : '', true, false).draw();
});
// Extract text from rendered cells to get actual displayed content
// Count occurrences of each unique value
var counts = {};
column.nodes().flatten().to$().each(function () {
var text = $(this).text().trim();
if (text && !select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + '</option>');
if (text) {
counts[text] = (counts[text] || 0) + 1;
}
});
// Add options with counts
for (var text in counts) {
if (!select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + ' (' + counts[text] + ')</option>');
}
}
// Sort options
select.find('option:not(:first)').sort(function(a, b) {
return a.text.localeCompare(b.text);
@@ -2446,14 +2454,22 @@ function saveOptions() {
column.search(val ? val : '', true, false).draw();
});
// Extract text from rendered cells to get actual displayed content
// Count occurrences of each unique value
var counts = {};
column.nodes().flatten().to$().each(function () {
var text = $(this).text().trim();
if (text && !select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + '</option>');
if (text) {
counts[text] = (counts[text] || 0) + 1;
}
});
// Add options with counts
for (var text in counts) {
if (!select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + ' (' + counts[text] + ')</option>');
}
}
// Sort options
select.find('option:not(:first)').sort(function(a, b) {
return a.text.localeCompare(b.text);
@@ -2516,14 +2532,22 @@ function saveOptions() {
column.search(val ? val : '', true, false).draw();
});
// Extract text from rendered cells to get actual displayed content
// Count occurrences of each unique value
var counts = {};
column.nodes().flatten().to$().each(function () {
var text = $(this).text().trim();
if (text && !select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + '</option>');
if (text) {
counts[text] = (counts[text] || 0) + 1;
}
});
// Add options with counts
for (var text in counts) {
if (!select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + ' (' + counts[text] + ')</option>');
}
}
// Sort options
select.find('option:not(:first)').sort(function(a, b) {
return a.text.localeCompare(b.text);
@@ -2650,6 +2674,7 @@ function saveOptions() {
id_list.forEach(function(id) {
let row = $("#dxccCheckTable tbody tr#qsoID-" + id);
table.row(row).remove();
$('#checkBoxAllDxcc').prop('checked', false);
});
table.draw(false);
$('.dxcctablediv').html(data.message);
@@ -2700,14 +2725,22 @@ function saveOptions() {
column.search(val ? val : '', true, false).draw();
});
// Extract text from rendered cells to get actual displayed content
// Count occurrences of each unique value
var counts = {};
column.nodes().flatten().to$().each(function () {
var text = $(this).text().trim();
if (text && !select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + '</option>');
if (text) {
counts[text] = (counts[text] || 0) + 1;
}
});
// Add options with counts
for (var text in counts) {
if (!select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + ' (' + counts[text] + ')</option>');
}
}
// Sort options
select.find('option:not(:first)').sort(function(a, b) {
return a.text.localeCompare(b.text);
@@ -2877,18 +2910,26 @@ function saveOptions() {
column.search(val ? val : '', true, false).draw();
});
// Extract text from rendered cells to get actual displayed content
// Count occurrences of each unique value
var counts = {};
column.nodes().flatten().to$().each(function () {
// Get text from the first anchor link which contains the IOTA reference
var $anchor = $(this).find('a').first();
var text = $anchor.length ? $anchor.text().trim() : $(this).text().trim();
// Remove any extra whitespace
text = text.split(/\s+/)[0];
if (text && !select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + '</option>');
if (text) {
counts[text] = (counts[text] || 0) + 1;
}
});
// Add options with counts
for (var text in counts) {
if (!select.find('option[value="' + text + '"]').length) {
select.append('<option value="' + text + '">' + text + ' (' + counts[text] + ')</option>');
}
}
// Sort options
select.find('option:not(:first)').sort(function(a, b) {
return a.text.localeCompare(b.text);