Changeset 7905

Show
Ignore:
Timestamp:
08/02/09 10:01:55 (4 years ago)
Author:
mbrevda
Message:

minify inline js

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/script.js.php

    r4993 r7905  
    2323} 
    2424 
    25 ?> 
    26  
     25/* 
     26NOTE: this js function should not be in the php block. It is here only as a  
     27reference to the minifies version, located just out of the block 
    2728//this is called from validateDestinations to check each set 
    2829//you can call this directly if you have multiple sets and only 
     
    5152  return true; 
    5253} 
     54*/ 
     55?> 
     56function 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;}}} 
     57return true;}