Changeset 686

Show
Ignore:
Timestamp:
12/07/07 23:49:19 (1 year ago)
Author:
laurentj
Message:

fixed bug #367: maxLength and minLength were not checked in jforms.js.
Added an INSTALL file for testapp

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/testapp.mn

    r668 r686  
    33  .htaccess 
    44  application.init.php 
     5  INSTALL 
    56cd testapp/plugins 
    67  .htaccess 
  • trunk/build/manifests/testapp.mn

    r668 r686  
    33  .htaccess 
    44  application.init.php 
     5  INSTALL 
    56cd testapp/plugins 
    67  .htaccess 
  • trunk/lib/jelix-www/js/jforms.js

    r650 r686  
    6565                var ok = false; 
    6666                switch(c.datatype){ 
    67                     case 'string' :  
     67                    case 'string' : 
    6868                        ok = true; 
    69                         break; 
    70                     case 'boolean' :  
     69                        if(c.minLength != -1 && val.length < c.minLength) 
     70                            ok = false; 
     71                        if(c.maxLength != -1 && val.length > c.maxLength) 
     72                            ok = false; 
     73                        break; 
     74                    case 'boolean' : 
    7175                        ok = (val == 'true' || val == 'false'); 
    7276                        break; 
  • trunk/lib/jelix-www/js/jforms.js

    r650 r686  
    6565                var ok = false; 
    6666                switch(c.datatype){ 
    67                     case 'string' :  
     67                    case 'string' : 
    6868                        ok = true; 
    69                         break; 
    70                     case 'boolean' :  
     69                        if(c.minLength != -1 && val.length < c.minLength) 
     70                            ok = false; 
     71                        if(c.maxLength != -1 && val.length > c.maxLength) 
     72                            ok = false; 
     73                        break; 
     74                    case 'boolean' : 
    7175                        ok = (val == 'true' || val == 'false'); 
    7276                        break; 
  • trunk/lib/jelix/CREDITS

    r685 r686  
    100100 
    101101Christian Tritten 
    102  - improvements on paglinks plugin (#340) 
     102 - improvements on pagelinks plugin (#340) 
    103103 
    104104Yann 
  • trunk/lib/jelix/CREDITS

    r685 r686  
    100100 
    101101Christian Tritten 
    102  - improvements on paglinks plugin (#340) 
     102 - improvements on pagelinks plugin (#340) 
    103103 
    104104Yann 
Download in other formats: Unified Diff Zip Archive