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:
@@ -601,7 +601,6 @@ function _renderReceipt(items, order) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ── Order Detail Modal (shared) ──────────────────
|
// ── Order Detail Modal (shared) ──────────────────
|
||||||
/**
|
|
||||||
function _configureDetailButtons(order, orderNumber, opts) {
|
function _configureDetailButtons(order, orderNumber, opts) {
|
||||||
const status = (order.status || '').toUpperCase();
|
const status = (order.status || '').toUpperCase();
|
||||||
const isInvoiced = !!(order.factura_numar);
|
const isInvoiced = !!(order.factura_numar);
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
<script>window.ROOT_PATH = "{{ rp }}";</script>
|
<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="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>
|
<script>
|
||||||
// Dark mode toggle
|
// Dark mode toggle
|
||||||
function toggleDarkMode() {
|
function toggleDarkMode() {
|
||||||
|
|||||||
Reference in New Issue
Block a user