]> git.datanom.net - qtadmin.git/blobdiff - js/forms.js
Finish change row per page
[qtadmin.git] / js / forms.js
index 938e6e84fbca8bc0624a688e8053af6ce3a2f786..f09ed997a031a646769e7a09b6e08a1cb45472f8 100644 (file)
@@ -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);
This page took 0.028486 seconds and 5 git commands to generate.