From 91094a74dc89bded3b729a580bcda1031f4af3fb Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Thu, 22 Jan 2026 12:48:40 -0600 Subject: [PATCH] move --- public/app.js | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/public/app.js b/public/app.js index da4f64c..400cc24 100644 --- a/public/app.js +++ b/public/app.js @@ -316,8 +316,21 @@ function addQuoteItem(item = null) { itemDiv.innerHTML = ` -
-
+
+
+ + + +
+
Qty: ${summaryQty} ${summaryDesc} $${summaryAmount} @@ -468,6 +481,22 @@ function removeQuoteItem(itemId) { updateTotals(); } +function moveItemUp(itemId) { + const item = document.getElementById(`item-${itemId}`); + const prev = item.previousElementSibling; + if (prev) { + item.parentNode.insertBefore(item, prev); + } +} + +function moveItemDown(itemId) { + const item = document.getElementById(`item-${itemId}`); + const next = item.nextElementSibling; + if (next) { + item.parentNode.insertBefore(next, item); + } +} + function toggleItem(itemId) { const itemDiv = document.getElementById(`item-${itemId}`); const content = itemDiv.querySelector('.item-content');