back button and null selection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user