Fix #500 - Next and previous links not working in testpage UI

This commit is contained in:
James Agnew 2016-12-08 10:45:47 -05:00
parent 5149e581db
commit 72653a9ec4
2 changed files with 8 additions and 2 deletions

View File

@ -150,7 +150,7 @@
$('#page-prev-btn').click(function() {
var btn = $(this);
handleActionButtonClick($(this));
btn.append($('<input />', { type: 'hidden', name: 'page-url', value: '<th:block th:text="${bundle.linkPrevious}"/>' }));
btn.append($('<input />', { type: 'hidden', name: 'page-url', value: [[${bundle.linkPrevious.value}]] }));
$("#outerForm").attr("action", "page").submit();
});
@ -167,7 +167,7 @@
$('#page-next-btn').click(function() {
var btn = $(this);
handleActionButtonClick($(this));
btn.append($('<input />', { type: 'hidden', name: 'page-url', value: '<th:block th:text="${bundle.linkNext}"/>' }));
btn.append($('<input />', { type: 'hidden', name: 'page-url', value: [[${bundle.linkNext.value}]] }));
$("#outerForm").attr("action", "page").submit();
});
</script>

View File

@ -84,6 +84,12 @@
does not contain an ID, or the ID does not match
the request URL. Thanks to Jim Steel for reporting!
</action>
<action type="fix" issue="500">
Web Testing UI's next and previous buttons for paging
through paged results did not work after the migration
to using Thymeleaf 3. Thanks to GitHub user @gsureshkumar
for reporting!
</action>
</release>
<release version="2.1" date="2016-11-11">
<action type="add">