Skip to content

Commit c1e8be2

Browse files
authored
Merge pull request #239 from AtlasOfLivingAustralia/234-datatable-usage
#232 disable DataTable pagination
2 parents 8e55134 + 0a28b26 commit c1e8be2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

grails-app/views/manage/externalLoadReview.gsp

+4-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</tbody>
8383
</table>
8484
<div>
85-
<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>
85+
<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>
8686
</div>
8787
</div>
8888
</g:form>
@@ -128,7 +128,8 @@
128128
{"orderable": false},
129129
{"orderable": false},
130130
{"orderable": false}
131-
]
131+
],
132+
paging: false
132133
});
133134
} );
134135
@@ -173,4 +174,4 @@
173174
};
174175
</script>
175176
</body>
176-
</html>
177+
</html>

grails-app/views/manage/repatriateReview.gsp

+4-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</table>
8989
<div>
9090
<g:if test="${configuration.resources}">
91-
<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>
91+
<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>
9292
</g:if>
9393
</div>
9494
</g:form>
@@ -140,7 +140,8 @@
140140
{"orderable": false},
141141
{"orderable": false},
142142
{"orderable": false}
143-
]
143+
],
144+
paging: false
144145
});
145146
} );
146147
@@ -185,4 +186,4 @@
185186
};
186187
</script>
187188
</body>
188-
</html>
189+
</html>

0 commit comments

Comments
 (0)