Svuota campo ricerca inventario/prodotti al cambio pagina

This commit is contained in:
dadaloop82
2026-03-13 14:34:34 +00:00
parent e300f56c52
commit 9062c498de
3 changed files with 7 additions and 1 deletions
+6
View File
@@ -683,6 +683,12 @@ function showPage(pageId, param = null) {
// Show target page
const page = document.getElementById(`page-${pageId}`);
if (page) page.classList.add('active');
// Clear search inputs when navigating away
const invSearch = document.getElementById('inventory-search');
if (invSearch) invSearch.value = '';
const prodSearch = document.getElementById('products-search');
if (prodSearch) prodSearch.value = '';
// Update nav
document.querySelectorAll('.nav-btn').forEach(b => b.classList.remove('active'));
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -874,6 +874,6 @@
</div>
</div>
<script src="assets/js/app.js?v=20260313e"></script>
<script src="assets/js/app.js?v=20260313f"></script>
</body>
</html>