coliver 2004/03/23 08:36:04
Modified: src/blocks/petstore/samples/flow petstore.js
Log:
fix viewProduct() to use page-local row count after sendPageAndWait()
Revision Changes Path
1.9 +2 -1 cocoon-2.1/src/blocks/petstore/samples/flow/petstore.js
Index: petstore.js
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/petstore/samples/flow/petstore.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- petstore.js 15 Mar 2004 09:15:25 -0000 1.8
+++ petstore.js 23 Mar 2004 16:36:04 -0000 1.9
@@ -220,6 +220,7 @@
local.skipResults,
maxResults);
local.lastPage = !itemList.isLimitedByMaxRows;
+ local.rowCount = itemList.rowCount;
var contextData = {
accountForm: accountForm,
fmt: formatter,
@@ -242,7 +243,7 @@
}
} else if (page == "next") {
if (!local.lastPage) {
- local.skipResults += itemList.rowCount;
+ local.skipResults += local.rowCount;
}
}
}