Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit bd5a183

Browse files
committed
fix: missing select/deselect all
1 parent 1d11e60 commit bd5a183

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

css/reskin-2/paymentHistory.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body {
44
background-color: var(--tc-white);
55
}
66

7-
.bigRed {
7+
.bigRed {
88
color: red;
99
}
1010

@@ -286,7 +286,8 @@ body {
286286
.form-container {
287287
display: flex;
288288
flex-direction: column;
289-
padding-top: 24px;
289+
/* padding-top: 24px; */
290+
padding-top: 8px;
290291
}
291292
.form-container br {
292293
display: none;
@@ -391,7 +392,8 @@ body {
391392
text-decoration: none;
392393
display: inline-flex;
393394
align-items: center;
394-
padding: 0 16px 8px;
395+
/* padding: 0 16px 8px; */
396+
padding: 16px;
395397
}
396398
.form-container .payment-table tbody tr.headerRow td a::after {
397399
content: url('/i/reskin-2/sortable.svg');

js/reskin/newTCScript.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,22 @@ $(document).ready(function() {
608608

609609

610610
// payment page
611-
$('.uncheckAll').click(function() {
612-
$('.uncheckable').attr('checked', false);
613-
updatePayMe();
614-
});
611+
// $('.uncheckAll').click(function() {
612+
// $('.uncheckable').attr('checked', false);
613+
// updatePayMe();
614+
// });
615615

616616
$('.checkAll').click(function () {
617-
$('.checkable').attr('checked', true);
617+
if (this.checked) {
618+
$('.checkable').attr('checked', true);
619+
var total = calcTotalPayment()
620+
if (total > 25) {
621+
$('.bigRed').prev().remove();
622+
$('.bigRed').remove();
623+
}
624+
} else {
625+
$('.uncheckable').attr('checked', false);
626+
}
618627
updatePayMe();
619628
});
620629

0 commit comments

Comments
 (0)