Changeset 6213

Show
Ignore:
Timestamp:
07/30/08 11:15:42 (5 years ago)
Author:
p_lindheimer
Message:

fixes #2973 was not including the javascript functions to enable/disable the vm and vmx fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/voicemail/functions.inc.php

    r6064 r6213  
    238238 
    239239       // We only want to hook 'users' or 'extensions' pages.  
    240   if ($pagename != 'users' && $pagename != 'extensions')   
     240  if ($pagename != 'users' && $pagename != 'extensions')  { 
    241241    return true;  
    242   // On a 'new' user, 'tech_hardware' is set, and there's no extension. Hook into the page.  
    243   if ($tech_hardware != null ) {  
    244     voicemail_applyhooks();  
    245   } elseif ($action=="add") {  
    246   // We don't need to display anything on an 'add', but we do need to handle returned data.  
    247     // ** WARNING ** 
    248     // Mailbox must be processed before adding / deleting users, therefore $sortorder = 1 
    249     $currentcomponent->addprocessfunc('voicemail_configprocess', 1); 
    250   } elseif ($extdisplay != '' || $pagename == 'users') {  
    251   // We're now viewing an extension, so we need to display _and_ process.  
    252     voicemail_applyhooks();  
    253     $currentcomponent->addprocessfunc('voicemail_configprocess', 1); 
     242  } 
     243 
     244  if ($tech_hardware != null || $extdisplay != '' || $pagename == 'users') {  
    254245    // JS function needed for checking voicemail = Enabled 
    255246    $js = 'return (theForm.vm.value == "enabled");'; 
     
    283274    "; 
    284275    $currentcomponent->addjsfunc('voicemailEnabled(notused)', $js); 
    285  
     276   
    286277    $js = " 
    287278      if (document.getElementById('vmx_state').value == 'checked') { 
     
    305296      document.getElementById('vmx_option_1_number').disabled=dval; 
    306297      document.getElementById('vmx_option_2_number').disabled=dval; 
    307  
     298   
    308299      if (document.getElementById('vm').value == 'disabled') { 
    309300        document.getElementById('vmx_option_0_number').disabled = true; 
     
    336327    "; 
    337328    $currentcomponent->addjsfunc('vmx_disable_fields(notused)', $js); 
     329  } 
     330 
     331  // On a 'new' user, 'tech_hardware' is set, and there's no extension. Hook into the page.  
     332  if ($tech_hardware != null ) {  
     333    voicemail_applyhooks();  
     334  } elseif ($action=="add") {  
     335  // We don't need to display anything on an 'add', but we do need to handle returned data.  
     336    // ** WARNING ** 
     337    // Mailbox must be processed before adding / deleting users, therefore $sortorder = 1 
     338    $currentcomponent->addprocessfunc('voicemail_configprocess', 1); 
     339  } elseif ($extdisplay != '' || $pagename == 'users') {  
     340  // We're now viewing an extension, so we need to display _and_ process.  
     341    voicemail_applyhooks();  
     342    $currentcomponent->addprocessfunc('voicemail_configprocess', 1); 
    338343  }  
    339344} 
  • modules/branches/2.5/voicemail/module.xml

    r6103 r6213  
    22  <rawname>voicemail</rawname> 
    33  <name>Voicemail</name> 
    4   <version>2.5.0</version> 
     4  <version>2.5.0.1</version> 
    55  <candisable>no</candisable> 
    66  <canuninstall>no</canuninstall> 
    77  <changelog> 
     8    *2.5.0.1* #2973 enable javascript to enable/disable voicemail and vmx fields when creating extension 
    89    *2.5.0* #2754, #2903, #2785, #2647, #2593 Added VmX config, added O extension config, better javascript interactions 
    910    *2.4.0.1* added depends on 2.4.0