Changeset 5192

Show
Ignore:
Timestamp:
11/02/07 21:04:40 (6 years ago)
Author:
p_lindheimer
Message:

#2455 allow + and other valid dial digits

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/blacklist/module.xml

    r4941 r5192  
    22  <rawname>blacklist</rawname> 
    33  <name>Blacklist</name> 
    4   <version>1.1.3.5</version> 
     4  <version>1.1.3.6</version> 
    55  <type>setup</type> 
    66  <category>Inbound Call Control</category> 
     
    99  </menuitems> 
    1010  <changelog> 
     11    *1.1.3.6* #2455 allow + and other valid dial digits 
    1112    *1.1.3.5* changed categories 
    1213    *1.1.3.4* bump for rc1 
  • modules/branches/2.3/blacklist/page.blacklist.php

    r4592 r5192  
    106106  </tr> 
    107107  </table> 
    108  
    109108<script language="javascript"> 
    110109<!-- 
     
    113112theForm.number.focus(); 
    114113 
     114function isDialDigitsPlus(s) 
     115{ 
     116  var i; 
     117 
     118  if (isEmpty(s)) { 
     119    return false; 
     120  } 
     121 
     122  for (i = 0; i < s.length; i++) { 
     123    var c = s.charAt(i); 
     124 
     125    if (!isDialDigitChar(c) && (c != "+")) return false; 
     126  } 
     127  return true; 
     128} 
     129 
     130 
    115131function edit_onsubmit() { 
    116132  defaultEmptyOK = false; 
    117         if (!isInteger(theForm.number.value)) 
     133        if (!isDialDigitsPlus(theForm.number.value)) 
    118134                return warnInvalid(theForm.number, "Please enter a valid Number"); 
    119135  return true;