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) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-05-04 07:40:02 +00:00
parent b13d9a466c
commit 9b62b2b457
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -169,7 +169,7 @@
<script>window.ROOT_PATH = "{{ rp }}";</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{ rp }}/static/js/shared.js?v=48"></script>
<script src="{{ rp }}/static/js/shared.js?v=49"></script>
<script>
// Dark mode toggle
function toggleDarkMode() {