Merge pull request #751 from shapeblue/master-CLOUDSTACK-8766 CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing
Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. The fix is to use similar approach as in projects.js, to use the maximum pagesize of 500. In theory, there is still a chance if there are 500 zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. (cherry picked from commit 8a1cc7aac6f3d9a0a1686e2dae8dd12b74ed9cdd) Signed-off-by: Rohit Yadav <[email protected]> * pr/751: CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/215a43df Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/215a43df Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/215a43df Branch: refs/heads/master Commit: 215a43dfafacd17fcfcc9ef1e39f07034476e222 Parents: 53cba7c a6e8cfd Author: Rohit Yadav <[email protected]> Authored: Mon Aug 31 14:28:11 2015 +0530 Committer: Rohit Yadav <[email protected]> Committed: Mon Aug 31 14:28:11 2015 +0530 ---------------------------------------------------------------------- ui/scripts/templates.js | 8 ++++++++ 1 file changed, 8 insertions(+) ----------------------------------------------------------------------
