From: <rm...@hy...> - 2009-02-13 22:54:32
|
Author: rmorgan Date: 2009-02-13 14:30:31 -0800 (Fri, 13 Feb 2009) New Revision: 12507 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12507 Modified: trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy Log: Un-hardcode rowNum attribute allowing users to change it on the fly. [HHQ-2872] Modified: trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy =================================================================== --- trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy 2009-02-13 22:24:22 UTC (rev 12506) +++ trunk/src/org/hyperic/hq/hqu/rendit_sys/html/DojoUtil.groovy 2009-02-13 22:30:31 UTC (rev 12507) @@ -331,6 +331,7 @@ def tableVar = "${idVar}_table" def sortFieldVar = "${idVar}_sortField" def pageNumVar = "${idVar}_pageNum" + def pageSizeVar = "${idVar}_pageSize" def lastPageVar = "${idVar}_lastPage" def sortOrderVar = "${idVar}_sortOrder" def urlXtraVar = "${idVar}_urlXtra" @@ -354,6 +355,7 @@ var ${sortFieldVar}; var ${pageNumVar} = 0; + var ${pageSizeVar} = ${params.numRows}; var ${lastPageVar} = false; var ${sortOrderVar}; var ${urlXtraVar} = []; @@ -387,7 +389,7 @@ if (kwArgs && kwArgs.numRows) res += '&pageSize='+ kwArgs.numRows; else - res += '&pageSize=${params.numRows}'; + res += '&pageSize=' + ${pageSizeVar}; if(kwArgs && kwArgs.typeId) res += '&typeId='+ kwArgs.typeId; |