X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/7d080341a23c30924f88d847dc24e4b55f198ae5..6ba40e12e461393dbce67695462272db7a42ccc5:/js/forms.js diff --git a/js/forms.js b/js/forms.js index 1460abd..458e412 100644 --- a/js/forms.js +++ b/js/forms.js @@ -25,7 +25,7 @@ function updateRowsPerPage() { } else { base = location.href; } - if (location.href.charAt(location.href.length) == '?') { + if (base.charAt(base.length - 1) == '?') { href = base + 'rowsperpage=' + rowsPerPage.value; } else { href = base + '?rowsperpage=' + rowsPerPage.value;