This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree 1 file changed +26
-0
lines changed
src/main/com/topcoder/web/tc/view/pacts/client 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 144
144
$ (' .payable[value="' + paymentId + ' "]' ).click ();
145
145
});
146
146
147
+ $ (' .checkAll' ).click (function () {
148
+ if (this .checked ) {
149
+ $ (' .checkAll' ).attr (' checked' , true );
150
+ $ (' .payable' ).each (function () {
151
+ var paymentId = this .value ;
152
+ $ (' [data-name="${ PAYMENT_ID } "][data-value="' + paymentId+ ' "]' ).removeClass (' checked' );
153
+ $ (' [data-name="${ PAYMENT_ID } "][data-value="' + paymentId+ ' "]' ).addClass (' checked' );
154
+ });
155
+ } else {
156
+ $ (' .checkAll' ).attr (' checked' , false );
157
+ $ (' .payable' ).each (function () {
158
+ var paymentId = this .value ;
159
+ $ (' [data-name="${ PAYMENT_ID } "][data-value="' + paymentId+ ' "]' ).removeClass (' checked' );
160
+ });
161
+ }
162
+ });
163
+
147
164
$ (' .payable' ).click (function () {
148
165
var hasSelected = false ;
149
166
$ (' .payable:checked' ).each (function () {
301
318
}
302
319
</script >
303
320
</div >
321
+ <%-- Mobile select all checkbox --%>
322
+ <c:if test =" ${ not empty payments } " >
323
+ <div class =" mobile-select-all-checkbox" >
324
+ <span class =" checkbox" >
325
+ <input type =" checkbox" class =" checkAll" >
326
+ <span class =" checkbox-label" ></span >
327
+ </span >
328
+ </div >
329
+ </c:if >
304
330
<%-- Mobile sort-button --%>
305
331
<c:if test =" ${ not empty payments } " >
306
332
<a
You can’t perform that action at this time.
0 commit comments