diff --git a/static/js/list_items_on_list.js b/static/js/list_items_on_list.js
deleted file mode 100644
index fbff26a..0000000
--- a/static/js/list_items_on_list.js
+++ /dev/null
@@ -1,45 +0,0 @@
-document.addEventListener("DOMContentLoaded", function () {
- // Tom Select jak był
-
- // Obsługa kliknięcia "Podgląd"
- document.querySelectorAll(".preview-btn").forEach((btn) => {
- btn.addEventListener("click", async () => {
- const listId = btn.dataset.listId;
- const modalTitle = document.getElementById("previewModalLabel");
- const productList = document.getElementById("product-list");
-
- modalTitle.textContent = "Ładowanie...";
- productList.innerHTML = '
⏳ Ładowanie produktów...';
-
- const modal = new bootstrap.Modal(document.getElementById("productPreviewModal"));
- modal.show();
-
- try {
- const res = await fetch(`/admin/list_items/${listId}`);
- const data = await res.json();
-
- modalTitle.textContent = `🛒 ${data.title}`;
- productList.innerHTML = "";
-
- if (data.items.length === 0) {
- productList.innerHTML = 'Brak produktów';
- } else {
- data.items.forEach(item => {
- const li = document.createElement("li");
- li.className = "list-group-item bg-dark text-white d-flex justify-content-between";
- li.innerHTML = `
- ${item.name}
-
- x${item.quantity}
- `;
- productList.appendChild(li);
- });
- }
-
- } catch (err) {
- modalTitle.textContent = "Błąd";
- productList.innerHTML = '❌ Błąd podczas ładowania';
- }
- });
- });
-});