|
Lines 576-582
Link Here
|
| 576 |
var result = |
576 |
var result = |
| 577 |
'<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="' + |
577 |
'<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="' + |
| 578 |
encodeURIComponent(row.cashup_id) + |
578 |
encodeURIComponent(row.cashup_id) + |
| 579 |
'" data-register="${register.description}" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' + |
579 |
'" data-register="' + |
|
|
580 |
register.description + |
| 581 |
'" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' + |
| 580 |
_("Summary") + |
582 |
_("Summary") + |
| 581 |
"</a>\n"; |
583 |
"</a>\n"; |
| 582 |
return result; |
584 |
return result; |
|
Lines 590-599
Link Here
|
| 590 |
1 |
592 |
1 |
| 591 |
); |
593 |
); |
| 592 |
|
594 |
|
| 593 |
$(document).ready(function() { |
595 |
$(document).ready(function () { |
| 594 |
// Check for cashup hash in URL |
596 |
// Check for cashup hash in URL |
| 595 |
let hash = window.location.hash; |
597 |
let hash = window.location.hash; |
| 596 |
if (hash && hash.startsWith('#cashup-')) { |
598 |
if (hash && hash.startsWith("#cashup-")) { |
| 597 |
let cashup_id = hash.substring(8); // Remove '#cashup-' prefix |
599 |
let cashup_id = hash.substring(8); // Remove '#cashup-' prefix |
| 598 |
let $button = $('[data-cashup="' + cashup_id + '"]'); |
600 |
let $button = $('[data-cashup="' + cashup_id + '"]'); |
| 599 |
if ($button.length) { |
601 |
if ($button.length) { |