Changeset 6213
- Timestamp:
- 07/30/08 11:15:42 (5 years ago)
- Files:
-
- modules/branches/2.5/voicemail/functions.inc.php (modified) (4 diffs)
- modules/branches/2.5/voicemail/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/voicemail/functions.inc.php
r6064 r6213 238 238 239 239 // We only want to hook 'users' or 'extensions' pages. 240 if ($pagename != 'users' && $pagename != 'extensions') 240 if ($pagename != 'users' && $pagename != 'extensions') { 241 241 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') { 254 245 // JS function needed for checking voicemail = Enabled 255 246 $js = 'return (theForm.vm.value == "enabled");'; … … 283 274 "; 284 275 $currentcomponent->addjsfunc('voicemailEnabled(notused)', $js); 285 276 286 277 $js = " 287 278 if (document.getElementById('vmx_state').value == 'checked') { … … 305 296 document.getElementById('vmx_option_1_number').disabled=dval; 306 297 document.getElementById('vmx_option_2_number').disabled=dval; 307 298 308 299 if (document.getElementById('vm').value == 'disabled') { 309 300 document.getElementById('vmx_option_0_number').disabled = true; … … 336 327 "; 337 328 $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); 338 343 } 339 344 } modules/branches/2.5/voicemail/module.xml
r6103 r6213 2 2 <rawname>voicemail</rawname> 3 3 <name>Voicemail</name> 4 <version>2.5.0 </version>4 <version>2.5.0.1</version> 5 5 <candisable>no</candisable> 6 6 <canuninstall>no</canuninstall> 7 7 <changelog> 8 *2.5.0.1* #2973 enable javascript to enable/disable voicemail and vmx fields when creating extension 8 9 *2.5.0* #2754, #2903, #2785, #2647, #2593 Added VmX config, added O extension config, better javascript interactions 9 10 *2.4.0.1* added depends on 2.4.0
