back button and null selection

This commit is contained in:
2026-04-22 20:07:51 +03:00
parent d35e10d2b7
commit ec2b0c631e
3 changed files with 10 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ window.renderBuildingDropdown = function() {
const bData = town.build_data || {};
const currentVal = bSelect.value;
bSelect.innerHTML = '';
bSelect.innerHTML = '<option value="" disabled selected>-- Επιλέξτε Κατασκευή --</option>';
for (const [key, nameGr] of Object.entries(window.BUILDING_NAMES_GR)) {
const level = bLevels[key] !== undefined ? bLevels[key] : "?";
@@ -82,7 +82,7 @@ window.renderUnitDropdown = function() {
const uData = town.unit_data || {};
const currentVal = uSelect.value;
uSelect.innerHTML = '';
uSelect.innerHTML = '<option value="" disabled selected>-- Επιλέξτε Μονάδα --</option>';
for (const [key, nameGr] of Object.entries(window.UNIT_NAMES_GR)) {
if (key === 'militia') continue;