From 9b62b2b45741250384bf542768cf44e406f27618 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Mon, 4 May 2026 07:40:02 +0000 Subject: [PATCH] fix(ui): _configureDetailButtons trapped in unterminated JSDoc Stray /** at shared.js:604 wrapped the function body in a block comment that only closed at line 747, so _configureDetailButtons was never defined. renderOrderDetailModal threw ReferenceError, leaving the order detail modal stuck on "Se incarca...". Removed the orphan /** opener; bumped shared.js cache-bust to v=49. Co-Authored-By: Claude Opus 4.7 (1M context) --- api/app/static/js/shared.js | 1 - api/app/templates/base.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/app/static/js/shared.js b/api/app/static/js/shared.js index 0a2d0ad..b78ad86 100644 --- a/api/app/static/js/shared.js +++ b/api/app/static/js/shared.js @@ -601,7 +601,6 @@ function _renderReceipt(items, order) { } // ── Order Detail Modal (shared) ────────────────── -/** function _configureDetailButtons(order, orderNumber, opts) { const status = (order.status || '').toUpperCase(); const isInvoiced = !!(order.factura_numar); diff --git a/api/app/templates/base.html b/api/app/templates/base.html index 0ace371..91df5f8 100644 --- a/api/app/templates/base.html +++ b/api/app/templates/base.html @@ -169,7 +169,7 @@ - +