sylvain     2003/08/21 03:06:41

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript
                        woody.js
  Log:
  Fix the use of validator functions for event handling.
  It's now called either if there's an actionCommand or if the validation succeeded.
  Woody samples work again ;-)
  
  Revision  Changes    Path
  1.9       +2 -1      
cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/woody.js
  
  Index: woody.js
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/woody.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- woody.js  16 Aug 2003 13:22:28 -0000      1.8
  +++ woody.js  21 Aug 2003 10:06:41 -0000      1.9
  @@ -153,7 +153,8 @@
           } else {
               this.submitId = undefined;
           }
  -        if (finished && validator != undefined) {
  +        // If either validation was successfull or there was an event, call the 
validator
  +        if ((finished ||this.submitId != null) && validator != undefined) {
               finished = validator(this);
           }
           if (finished) {
  
  
  

Reply via email to