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

Commit 16c4d06

Browse files
committed
fix: missing select/deselect all
1 parent 6318121 commit 16c4d06

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/com/topcoder/web/tc/view/pacts/client/PaymentHistory.jsp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@
151151
error = $('<span />').attr('class', 'bigRed').html('The total net amount for selected payments is less than $25');
152152
$("#PaymentHistoryForm").prev().append('<br>').append(error)
153153
}
154+
if ($('.checkable:checked').length == $('.checkable').length) {
155+
$('.checkAll').attr('checked', true);
156+
} else if ($('.checkable').not(':checked').length == $('.checkable').length) {
157+
$('.checkAll').attr('checked', false);
158+
}
154159
});
155160
});
156161
}
@@ -377,7 +382,13 @@
377382
<a class="getable" href="<%=sessionInfo.getServletPath()%>?<tc-webtag:sort column="7" includeParams="true" />" >Date Paid</a>
378383
<%--</c:if>--%>
379384
</td>
380-
<td class="header">&nbsp;</td>
385+
<td class="headerC">
386+
<span class="checkbox">
387+
<input type="checkbox" class="checkAll">
388+
<span class="checkbox-label"></span>
389+
</span>
390+
</td>
391+
<%-- <td class="header">&nbsp;</td> --%>
381392
</tr>
382393

383394
<c:forEach items="${payments}" var="payment">

0 commit comments

Comments
 (0)