Skip to content

Commit 924fc9e

Browse files
committed
Fixes More species record feature
1 parent 377da75 commit 924fc9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
/.idea
3535
/.settings
3636
*.iml
37+
*.sha1
3738

3839
/node_modules
3940
/bower_components

grails-app/views/region/_species.gsp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</g:each>
3333

3434
<g:if test="${species.records.size() > 0 && species.records.size() % 50 == 0}">
35-
<aa:zone id="moreSpeciesZone" tag="tr">
35+
<tr id="moreSpeciesZone" totalRecords="${species.totalRecords}">
3636
<td colspan="2" class="text-center">
3737
<a aa-refresh-zones="moreSpeciesZone" id="showMoreSpeciesButton"
3838
href="${g.createLink(controller: 'region', action: 'showSpecies', params: [pageIndex: pageIndex ? pageIndex + 1 : '1'])}"
@@ -41,7 +41,7 @@
4141
class="btn btn-small"><i class="fa fa-plus"></i> Show more species</a>
4242
</td>
4343
<td></td>
44-
</aa:zone>
44+
</tr>
4545
</g:if>
4646

4747
<g:if test="${!pageIndex || pageIndex == 0}">

0 commit comments

Comments
 (0)