Commit 21cc575d authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

"Results per page" functionality - incorrect behavior

parent 99276fc6
...@@ -685,7 +685,9 @@ ...@@ -685,7 +685,9 @@
} }
}); });
var filter = JSON.stringify(jsonData); var filter = JSON.stringify(jsonData);
var url = '<c:url value="/explore" />' + '?filter=' + filter + "&columns=" + columns.toString(); var results = decodeURIComponent((new RegExp('[?|&]results=' + '([^&;]+?)(&|#|;|$)').exec(location.search)
|| [null, ''])[1].replace(/\+/g, '%20')) || 50;
var url = '<c:url value="/explore" />' + '?filter=' + filter + "&columns=" + columns.toString() + "&results=" + results;
window.location.href = encodeURI(url); window.location.href = encodeURI(url);
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment