Changeset 2887

Show
Ignore:
Timestamp:
01/15/12 09:54:52 (4 months ago)
Author:
mesosaure
Message:

See #652 guse etLocalizedString("pilototo_prog_del") vs "efface"... gronf !! tested IE and FF

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/site/pilototo.php

    r2886 r2887  
    153153                var reg=new RegExp("^[-]?(([0-9]{1}|[1-8]{1}[0-9]{1})([.]{1}[0-9]{1,10})?|90)[,]{1}[-]?(([1-9][0-9]|[0-9]{1}|1[0-7][0-9])([.]{1}[0-9]{1,10})?|180)([@](([0-9]{1}|[1-9][0-9]|[1-2][0-9][0-9]|3[0-5][0-9])([.]{1}[0-9]{1,6})?|([-]1([.][0]{1,6})?)?))?$","i"); 
    154154        } 
    155                 alert("<?php echo getLocalizedString("pilototo_prog_del");?>"); 
    156         return((document.activeElement.value == "efface" ? true : reg.test(ordre))); 
     155                //#562 : don't check grammar if del button : alert("<?php echo getLocalizedString("pilototo_prog_del");?>"); 
     156        return((document.activeElement.value == "<?php echo getLocalizedString("pilototo_prog_del");?>" ? true : reg.test(ordre))); 
    157157    } 
    158158