Changeset 859

Show
Ignore:
Timestamp:
04/01/08 17:46:59 (8 months ago)
Author:
laurentj
Message:

ticket #525: javascript errors in jforms.js, optimized build
fixed also bugs in phpdoc templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/phpdoc/Converters/HTML/frames/templates/DOM/jelix/templates/left_frame.tpl

    r236 r859  
    55if (document.getElementById) {ldelim} 
    66{section name=p loop=$info} 
     7    var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
     8    tree.setBehavior('classic'); 
     9 
    710        {if $info[p].subpackage == ""} 
    8                 var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
    9                 tree.setBehavior('classic'); 
     11 
    1012         
    1113                {if $hastodos} 
  • trunk/build/phpdoc/Converters/HTML/frames/templates/DOM/jelix/templates/left_frame.tpl

    r236 r859  
    55if (document.getElementById) {ldelim} 
    66{section name=p loop=$info} 
     7    var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
     8    tree.setBehavior('classic'); 
     9 
    710        {if $info[p].subpackage == ""} 
    8                 var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
    9                 tree.setBehavior('classic'); 
     11 
    1012         
    1113                {if $hastodos} 
  • trunk/build/phpdoc/Converters/HTML/frames/templates/DOM/jelix/templates/left_frame.tpl

    r236 r859  
    55if (document.getElementById) {ldelim} 
    66{section name=p loop=$info} 
     7    var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
     8    tree.setBehavior('classic'); 
     9 
    710        {if $info[p].subpackage == ""} 
    8                 var tree = new WebFXTree('<span class="package">{$info.0.package|escape:"quotes"}</span>'); 
    9                 tree.setBehavior('classic'); 
     11 
    1012         
    1113                {if $hastodos} 
  • trunk/lib/jelix-www/js/jforms.js

    r768 r859  
    177177                        break; 
    178178                    case 'url' : 
    179                         ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1) 
     179                        ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1); 
    180180                        break; 
    181181                    case 'email' : 
    182                         ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1) 
     182                        ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1); 
    183183                        break; 
    184184                    case 'ipv4' : 
    185185                         var t = val.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/); 
    186186                         if(t) 
    187                             ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255) 
     187                            ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255); 
    188188                         else 
    189189                            ok = false; 
    190190                        break; 
    191191                    case 'ipv6' : 
    192                         ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1) 
     192                        ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1); 
    193193                        break; 
    194194                } 
     
    249249        } else if(elt.item){ 
    250250            // this is a NodeList of radio buttons 
    251             value = [] 
     251            value = []; 
    252252            for (var i = 0; i < elt.length; i++) { 
    253253                var radio = elt.item(i); 
     
    274274        } 
    275275    } 
    276 } 
     276}; 
    277277 
    278278/** 
     
    284284    this.errorDecorator =  new jFormsErrorDecoratorAlert(); 
    285285    this.helpDecorator =  new jFormsHelpDecoratorAlert(); 
    286 } 
     286}; 
    287287 
    288288jFormsForm.prototype={ 
     
    298298        this.helpDecorator = decorator; 
    299299    } 
    300 } 
     300}; 
    301301 
    302302/* 
     
    316316    this.minLength = -1; 
    317317    this.maxLength = -1; 
    318 } 
     318}; 
    319319 
    320320 
     
    324324function jFormsErrorDecoratorAlert(){ 
    325325    this.message = ''; 
    326 } 
     326}; 
    327327 
    328328jFormsErrorDecoratorAlert.prototype = { 
     
    344344        } 
    345345    } 
    346 } 
     346}; 
    347347 
    348348 
     
    352352function jFormsHelpDecoratorAlert() { 
    353353 
    354 } 
     354}; 
    355355jFormsHelpDecoratorAlert.prototype = { 
    356356    show : function( message){ 
    357357        alert(message); 
    358358    } 
    359 } 
    360  
     359}; 
     360 
  • trunk/lib/jelix-www/js/jforms.js

    r768 r859  
    177177                        break; 
    178178                    case 'url' : 
    179                         ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1) 
     179                        ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1); 
    180180                        break; 
    181181                    case 'email' : 
    182                         ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1) 
     182                        ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1); 
    183183                        break; 
    184184                    case 'ipv4' : 
    185185                         var t = val.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/); 
    186186                         if(t) 
    187                             ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255) 
     187                            ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255); 
    188188                         else 
    189189                            ok = false; 
    190190                        break; 
    191191                    case 'ipv6' : 
    192                         ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1) 
     192                        ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1); 
    193193                        break; 
    194194                } 
     
    249249        } else if(elt.item){ 
    250250            // this is a NodeList of radio buttons 
    251             value = [] 
     251            value = []; 
    252252            for (var i = 0; i < elt.length; i++) { 
    253253                var radio = elt.item(i); 
     
    274274        } 
    275275    } 
    276 } 
     276}; 
    277277 
    278278/** 
     
    284284    this.errorDecorator =  new jFormsErrorDecoratorAlert(); 
    285285    this.helpDecorator =  new jFormsHelpDecoratorAlert(); 
    286 } 
     286}; 
    287287 
    288288jFormsForm.prototype={ 
     
    298298        this.helpDecorator = decorator; 
    299299    } 
    300 } 
     300}; 
    301301 
    302302/* 
     
    316316    this.minLength = -1; 
    317317    this.maxLength = -1; 
    318 } 
     318}; 
    319319 
    320320 
     
    324324function jFormsErrorDecoratorAlert(){ 
    325325    this.message = ''; 
    326 } 
     326}; 
    327327 
    328328jFormsErrorDecoratorAlert.prototype = { 
     
    344344        } 
    345345    } 
    346 } 
     346}; 
    347347 
    348348 
     
    352352function jFormsHelpDecoratorAlert() { 
    353353 
    354 } 
     354}; 
    355355jFormsHelpDecoratorAlert.prototype = { 
    356356    show : function( message){ 
    357357        alert(message); 
    358358    } 
    359 } 
    360  
     359}; 
     360 
  • trunk/lib/jelix-www/js/jforms.js

    r768 r859  
    177177                        break; 
    178178                    case 'url' : 
    179                         ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1) 
     179                        ok = (val.search(/^[a-z]+:\/\/((((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))((\/)|$)/) != -1); 
    180180                        break; 
    181181                    case 'email' : 
    182                         ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1) 
     182                        ok = (val.search(/^((\"[^\"f\n\r\t\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/) != -1); 
    183183                        break; 
    184184                    case 'ipv4' : 
    185185                         var t = val.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/); 
    186186                         if(t) 
    187                             ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255) 
     187                            ok = (t[1] > 255 || t[2] > 255 || t[3] > 255 || t[4] > 255); 
    188188                         else 
    189189                            ok = false; 
    190190                        break; 
    191191                    case 'ipv6' : 
    192                         ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1) 
     192                        ok = (val.search(/^([a-f0-9]{1,4})(:([a-f0-9]{1,4})){7}$/i) != -1); 
    193193                        break; 
    194194                } 
     
    249249        } else if(elt.item){ 
    250250            // this is a NodeList of radio buttons 
    251             value = [] 
     251            value = []; 
    252252            for (var i = 0; i < elt.length; i++) { 
    253253                var radio = elt.item(i); 
     
    274274        } 
    275275    } 
    276 } 
     276}; 
    277277 
    278278/** 
     
    284284    this.errorDecorator =  new jFormsErrorDecoratorAlert(); 
    285285    this.helpDecorator =  new jFormsHelpDecoratorAlert(); 
    286 } 
     286}; 
    287287 
    288288jFormsForm.prototype={ 
     
    298298        this.helpDecorator = decorator; 
    299299    } 
    300 } 
     300}; 
    301301 
    302302/* 
     
    316316    this.minLength = -1; 
    317317    this.maxLength = -1; 
    318 } 
     318}; 
    319319 
    320320 
     
    324324function jFormsErrorDecoratorAlert(){ 
    325325    this.message = ''; 
    326 } 
     326}; 
    327327 
    328328jFormsErrorDecoratorAlert.prototype = { 
     
    344344        } 
    345345    } 
    346 } 
     346}; 
    347347 
    348348 
     
    352352function jFormsHelpDecoratorAlert() { 
    353353 
    354 } 
     354}; 
    355355jFormsHelpDecoratorAlert.prototype = { 
    356356    show : function( message){ 
    357357        alert(message); 
    358358    } 
    359 } 
    360  
     359}; 
     360 
Download in other formats: Unified Diff Zip Archive