Skip to content

Commit

Permalink
Merge pull request #239 from AtlasOfLivingAustralia/234-datatable-usage
Browse files Browse the repository at this point in the history
#232 disable DataTable pagination
  • Loading branch information
adam-collins authored Apr 18, 2024
2 parents 8e55134 + 0a28b26 commit c1e8be2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions grails-app/views/manage/externalLoadReview.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</tbody>
</table>
<div>
<span class="button"><g:actionSubmit class="save btn btn-warning" controller="manage" action="updateFromExternalSources" value="${message(code: 'default.button.load.label', default: 'Load')}" onclick="return confirm('${message(code: 'default.button.load.confirm.message', default: 'Are you sure?')}');" /></span>
<span class="button"><g:actionSubmit class="save btn btn-warning" controller="manage" action="updateFromExternalSources" value="${message(code: 'default.button.load.label', default: 'Load')}" onclick="${'$'}('#resource-table').DataTable().search('').draw(); return confirm('${message(code: 'default.button.load.confirm.message', default: 'Are you sure?')}');" /></span>
</div>
</div>
</g:form>
Expand Down Expand Up @@ -128,7 +128,8 @@
{"orderable": false},
{"orderable": false},
{"orderable": false}
]
],
paging: false
});
} );
Expand Down Expand Up @@ -173,4 +174,4 @@
};
</script>
</body>
</html>
</html>
7 changes: 4 additions & 3 deletions grails-app/views/manage/repatriateReview.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</table>
<div>
<g:if test="${configuration.resources}">
<span class="button"><g:actionSubmit class="save btn btn-warning" controller="manage" action="updateFromExternalSources" value="${message(code: 'default.button.load.label', default: 'Load')}" onclick="return confirm('${message(code: 'default.button.load.confirm.message', default: 'Are you sure?')}');" /></span>
<span class="button"><g:actionSubmit class="save btn btn-warning" controller="manage" action="updateFromExternalSources" value="${message(code: 'default.button.load.label', default: 'Load')}" onclick="${'$'}('#resource-table').DataTable().search('').draw(); return confirm('${message(code: 'default.button.load.confirm.message', default: 'Are you sure?')}');" /></span>
</g:if>
</div>
</g:form>
Expand Down Expand Up @@ -140,7 +140,8 @@
{"orderable": false},
{"orderable": false},
{"orderable": false}
]
],
paging: false
});
} );
Expand Down Expand Up @@ -185,4 +186,4 @@
};
</script>
</body>
</html>
</html>

0 comments on commit c1e8be2

Please sign in to comment.