Changeset 8687
- Timestamp:
- 01/26/10 17:09:35 (2 years ago)
- Files:
-
- modules/branches/2.7/findmefollow/module.xml (modified) (1 diff)
- modules/branches/2.7/findmefollow/page.findmefollow.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7/findmefollow/module.xml
r8183 r8687 2 2 <rawname>findmefollow</rawname> 3 3 <name>Follow Me</name> 4 <version>2. 6.0.1</version>4 <version>2.7.0.0</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> 7 7 <changelog> 8 *2.7.0.0* #1718 8 9 *2.6.0.1* #3780 9 10 *2.6.0.0* localizations, misc modules/branches/2.7/findmefollow/page.findmefollow.php
r8593 r8687 410 410 </td> 411 411 <td> 412 <select name="changecid" tabindex="<?php echo ++$tabindex;?>">412 <select name="changecid" id="changecid" tabindex="<?php echo ++$tabindex;?>"> 413 413 <?php 414 414 $default = (isset($changecid) ? $changecid : 'default'); … … 418 418 echo '<option value="did" '.($default == 'did' ? 'SELECTED' : '').'>'._("Use Dialed Number"); 419 419 echo '<option value="forcedid" '.($default == 'forcedid' ? 'SELECTED' : '').'>'._("Force Dialed Number"); 420 $fixedcid_disabled = ($default != 'fixed' && $default != 'extern') ? 'disabled = "disabled"':''; 420 421 ?> 421 422 </select> … … 425 426 <tr> 426 427 <td><a href="#" class="info"><?php echo _("Fixed CID Value")?>:<span><?php echo _('Fixed value to replace the CID with used with some of the modes above. Should be in a format of digits only with an option of E164 format using a leading "+".')?></span></a></td> 427 <td><input size="30" type="text" name="fixedcid" value="<?php echo $fixedcid ?>" tabindex="<?php echo ++$tabindex;?>"></td>428 <td><input size="30" type="text" name="fixedcid" id="fixedcid" value="<?php echo $fixedcid ?>" tabindex="<?php echo ++$tabindex;?>" <?php echo $fixedcid_disabled ?>></td> 428 429 </tr> 429 430 … … 448 449 <!-- 449 450 451 $(document).ready(function(){ 452 $("#changecid").change(function(){ 453 state = (this.value == "fixed" || this.value == "extern") ? "" : "disabled"; 454 $("#fixedcid").attr("disabled",state); 455 }); 456 }); 457 450 458 function insertExten() { 451 459 exten = document.getElementById('insexten').value; … … 463 471 464 472 function checkGRP(theForm) { 465 var msgInvalidGrpNum = "<?php echo _('Invalid Group Number specified'); ?>";466 473 var msgInvalidExtList = "<?php echo _('Please enter an extension list.'); ?>"; 467 var msgInvalidGrpPrefix = "<?php echo _('Invalid prefix. Valid characters: a-z A-Z 0-9 : _ -'); ?>";468 474 var msgInvalidTime = "<?php echo _('Invalid time specified'); ?>"; 469 475 var msgInvalidGrpTimeRange = "<?php echo _('Time must be between 1 and 60 seconds'); ?>"; 470 476 var msgInvalidRingStrategy = "<?php echo _('Only ringall, ringallv2, hunt and the respective -prim versions are supported when confirmation is checked'); ?>"; 471 472 477 var msgInvalidCID = "<?php echo _('Invalid CID Number. Must be in a format of digits only with an option of E164 format using a leading "+"'); ?>"; 473 478 474 479 // set up the Destination stuff … … 480 485 return warnInvalid(theForm.grplist, msgInvalidExtList); 481 486 482 defaultEmptyOK = false; 487 if (!theForm.fixedcid.disabled) { 488 fixedcid = $.trim(theForm.fixedcid.value); 489 if (theForm.fixedcid.value.substring(0,1) == '+') { 490 fixedcid = theForm.fixedcid.value.substring(1); 491 } 492 if (!isInteger(fixedcid)) { 493 return warnInvalid(theForm.fixedcid, msgInvalidCID); 494 } 495 } 496 483 497 if (!isInteger(theForm.grptime.value)) { 484 498 return warnInvalid(theForm.grptime, msgInvalidTime); … … 494 508 495 509 defaultEmptyOK = true; 496 if (!isPrefix(theForm.grppre.value))497 return warnInvalid(theForm.grppre, msgInvalidGrpPrefix);498 510 499 511 if (!validateDestinations(theForm, 1, true))
