fix: remove redundant badge element lookup in edit inspection modal
This commit is contained in:
parent
ecb3bbddd1
commit
3bec7cfd7c
1 changed files with 0 additions and 3 deletions
|
|
@ -885,9 +885,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
badgeText = '{% translate "Suggéré : Non conforme" %}';
|
badgeText = '{% translate "Suggéré : Non conforme" %}';
|
||||||
badgeClass = 'bg-warning-subtle text-warning-emphasis border border-warning-subtle';
|
badgeClass = 'bg-warning-subtle text-warning-emphasis border border-warning-subtle';
|
||||||
icon = 'bi-exclamation-circle-fill';
|
icon = 'bi-exclamation-circle-fill';
|
||||||
}
|
|
||||||
|
|
||||||
const badge = document.getElementById('editHotboxRecommendedBadge');
|
|
||||||
if (badge) {
|
if (badge) {
|
||||||
badge.className = `badge ${badgeClass} px-2.5 py-1 rounded-pill small`;
|
badge.className = `badge ${badgeClass} px-2.5 py-1 rounded-pill small`;
|
||||||
badge.innerHTML = `<i class="bi ${icon} me-1"></i>${badgeText}`;
|
badge.innerHTML = `<i class="bi ${icon} me-1"></i>${badgeText}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue