v0.5.137: onchange + console.log для проверки

This commit is contained in:
2026-06-16 05:01:30 +04:00
parent 24e0e39782
commit 0e1f34c913
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
<div class="card-body" style="padding:.75rem 1rem;">
<form method="GET" action="/v2/app" style="display:flex;align-items:center;gap:1rem;flex-wrap:wrap;">
<span style="font-size:.85rem;color:var(--muted);font-weight:500;">Компания:</span>
<select name="switchTo">
<select name="switchTo" onchange="console.log('onchange fired', this.value); this.form.submit()">
<% companies.forEach(function(c) { %>
<option value="<%= c.client_id %>" <%= c.client_id === activeClientId ? 'selected' : '' %>>
<%= c.name %> (<%= c.client_id %>)<% if (c.isPersonal) { %> (личное)<% } %><% if (c.active_count != null) { %> — <%= c.active_count %> зап.<% } %>