Fix first and last pages in forms

pull/1/head
yflory 4 years ago
parent cb1d4c1a0d
commit 6b85a0bcc8

@ -2130,6 +2130,8 @@ define([
h('span', Messages.form_page_next),
h('i.fa.fa-chevron-right'),
]);
if (current === pages) { $(right).css('visibility', 'hidden'); }
if (current === 1) { $(left).css('visibility', 'hidden'); }
$(left).click(function () { refreshPage(current - 1); });
$(right).click(function () { refreshPage(current + 1); });
$page.append([left, state, right]);

Loading…
Cancel
Save