Changeset 9233

Show
Ignore:
Timestamp:
03/16/10 06:22:04 (3 years ago)
Author:
mbrevda
Message:

re #1798; fix fax to elegently support new destinations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/fax/functions.inc.php

    r9137 r9233  
    387387    $html='<script type="text/javascript">$(document).ready(function(){ 
    388388    $("input[name=Submit]").click(function(){ 
    389       if($("input[name=faxenabled]:checked").val()=="true" && !$("input[name=gotoFAX]:checked").val()){//ensure the user selected a fax destination 
     389      if($("input[name=faxenabled]:checked").val()=="true" && !$("[name=gotoFAX]").val()){//ensure the user selected a fax destination 
    390390      alert('._('"You have selected Fax Detection on this route. Please select a valid destination to route calls detected as faxes to."').');return false; } }) });</script>'; 
    391391    $html .= '<tr><td colspan="2"><h5>'; 
     
    460460      $html.='<table class="faxdest27 faxdetect" style="display: none" >'; 
    461461  }    
    462     $html.='<tr class="faxdest"><td><a href="#" class="info">'._("Fax Destination").'<span>'._('Where to send the call if we detect that its a fax').'.</span></a>:</td></tr>'; 
    463     $html.=$fax_detect?drawselects(isset($fax['destination'])?$fax['destination']:null,'FAX'):''; 
    464     $html.='</table>'; 
     462    $html.='<tr class="faxdest"><td><a href="#" class="info">'._("Fax Destination").'<span>'._('Where to send the call if we detect that its a fax').'.</span></a>:</td>'; 
     463    $html.='<td>'; 
     464    $html.=$fax_detect?drawselects(isset($fax['destination'])?$fax['destination']:null,'FAX',false,false):''; 
     465    $html.='</td></tr></table>'; 
    465466    $html.='<table>'; 
    466467  }