Changeset 5293

Show
Ignore:
Timestamp:
11/25/07 18:09:54 (1 year ago)
Author:
p_lindheimer
Message:

add option to drawselects() to force it to show custom destination option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r5275 r5293  
    16271627// esnure that any form that includes this calls the setDestinations() javascript function on submit. 
    16281628// ie: if the form name is "edit", and drawselects has been called with $i=2 then use onsubmit="setDestinations(edit,2)" 
    1629 function drawselects($goto,$i) {   
     1629function drawselects($goto,$i,$show_custom=false) {   
    16301630         
    16311631        /* --- MODULES BEGIN --- */ 
     
    16951695         
    16961696        //display a custom goto field 
    1697         if ($custom_selected) { 
     1697        if ($custom_selected || $show_custom) { 
    16981698        $radioid = uniqid("drawselect"); 
    16991699        $selectHtml .= '<input type="radio" id="'.$radioid.'" name="goto'.$i.'" value="custom" '.