cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/petstore/samples/flow petstore.js
Date Tue, 23 Mar 2004 16:36:04 GMT
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;
               }
           }
       }
  
  
  

Mime
View raw message