Changeset 9286

Show
Ignore:
Timestamp:
03/19/10 12:03:24 (2 years ago)
Author:
p_lindheimer
Message:

oops match mattern goes in prefix so it gets removed, google 411 wizard

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/core/page.trunks.php

    r9285 r9286  
    646646      function populateGoogle411() { 
    647647        do { 
    648           var localpattern = <?php echo 'prompt("'._("What is the directory assistance number you will dial locally in the format that is passed to this trunk, ie 411").'");'?> 
    649           if (localpattern == null) return; 
    650         } while (!localpattern.match('^[0-9#*]+$') && <?php echo '!alert("'._("Invalid pattern. Only 0-9, #, *").'")'?>); 
     648        var localprefix = <?php echo 'prompt("'._("What is the directory assistance number you will dial locally in the format that is passed to this trunk, ie 411").'"'?>,<?php echo _('"411"')?>); 
     649          if (localprefix == null) return; 
     650        } while (!localprefix.match('^[0-9#*]+$') && <?php echo '!alert("'._("Invalid pattern. Only 0-9, #, *").'")'?>); 
    651651        do { 
    652652 
     
    655655        } while (!localprepend.match('^[0-9#*]+$') && <?php echo '!alert("'._('Invalid number. Only 0-9, #,  and * are allowed.').'")'?>); 
    656656         
    657         addCustomField(localprepend,'',localpattern); 
     657        addCustomField(localprepend,localprefix,''); 
    658658      } 
    659659