Changeset 7905
- Timestamp:
- 08/02/09 10:01:55 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/common/script.js.php
r4993 r7905 23 23 } 24 24 25 ?> 26 25 /* 26 NOTE: this js function should not be in the php block. It is here only as a 27 reference to the minifies version, located just out of the block 27 28 //this is called from validateDestinations to check each set 28 29 //you can call this directly if you have multiple sets and only … … 51 52 return true; 52 53 } 54 */ 55 ?> 56 function validateSingleDestination(theForm,formNum,bRequired){var gotoType=theForm.elements['goto'+formNum].value;if(bRequired&&gotoType==''){alert('<?php echo _("Please select a \"Destination\""); ?>');return false;}else{if(gotoType=='custom'){var gotoFld=theForm.elements['custom'+formNum];var gotoVal=gotoFld.value;if(gotoVal.indexOf('custom-')==-1){alert('<?php echo _("Custom Goto contexts must contain the string \"custom-\". ie: custom-app,s,1"); ?>');gotoFld.focus();return false;}}} 57 return true;}
