From b2d09a908fc3dabe2c239a02730fa3414d339930 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sun, 7 Jun 2015 20:19:00 +0200 Subject: [PATCH] Add change row per page --- js/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/forms.js b/js/forms.js index 67123af..ec2720f 100644 --- a/js/forms.js +++ b/js/forms.js @@ -17,8 +17,8 @@ function updateRowsPerPage() { if (found == false) { /* current page has rows < current rows per page */ var href = location.href; - href = 'index.php?rowsperpage=' + rowsPerPage.value; + href = encodeURI('index.php?rowsperpage=' + rowsPerPage.value); alert(href); - window.location = href; + location.href = href; } } -- 2.39.2