You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2003/07/22 10:37:31 UTC

cvs commit: cocoon-2.1/src/blocks/woody/samples/flow woody_flow_example.js

bruno       2003/07/22 01:37:31

  Modified:    src/blocks/woody/samples/flow woody_flow_example.js
  Log:
  * ported to FOM
  * added date example
  
  Revision  Changes    Path
  1.2       +3 -2      cocoon-2.1/src/blocks/woody/samples/flow/woody_flow_example.js
  
  Index: woody_flow_example.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/flow/woody_flow_example.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- woody_flow_example.js	5 Jul 2003 22:53:33 -0000	1.1
  +++ woody_flow_example.js	22 Jul 2003 08:37:31 -0000	1.2
  @@ -8,12 +8,13 @@
       model.cowheight = 4;
       model.number1 = 1;
       model.number2 = 3;
  +    model.birthdate = new Date();
       
       model.contacts[0].firstname = "Jules";
       model.contacts[1].firstname =  "Lucien";
       model.contacts[2].firstname = "Chris";
       model.drinks = ["Jupiler", "Coca Cola"];
  -    
  +
       form.show("form1-display-pipeline", function(form) {
           print("submitId="+form.getSubmitId());
           switch(form.getSubmitId()) {
  @@ -37,7 +38,7 @@
           return false;
       });
       print("visa="+model.visa);
  -    sendPage("form1-success-pipeline");
  +    cocoon.sendPage("form1-success-pipeline");
       form.finish();
   
   }