From f3d5584fe7570890f96f74f71c03e5cba5f2b435 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Mon, 8 Jun 2015 00:05:26 +0200 Subject: [PATCH] Finish change row per page --- js/forms.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/forms.js b/js/forms.js index 938e6e8..f09ed99 100644 --- a/js/forms.js +++ b/js/forms.js @@ -25,7 +25,11 @@ function updateRowsPerPage() { } else { base = location.href; } - href = base + '?rowsperpage=' + rowsPerPage.value; + if (location.href.charAt(location.href.length - 1) == '?') { + href = base + 'rowsperpage=' + rowsPerPage.value; + } else { + href = base + '?rowsperpage=' + rowsPerPage.value; + } } else { pos = location.href.search('rowsperpage'); base = location.href.slice(0, pos); -- 2.39.5