This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
src/main/com/topcoder/web/tc/view/pacts/client Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 144144 $ (' .payable[value="' + paymentId + ' "]' ).click ();
145145 });
146146
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+
147164 $ (' .payable' ).click (function () {
148165 var hasSelected = false ;
149166 $ (' .payable:checked' ).each (function () {
301318 }
302319 </script >
303320 </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 >
304330 <%-- Mobile sort-button --%>
305331 <c:if test =" ${ not empty payments } " >
306332 <a
You can’t perform that action at this time.
0 commit comments