Changeset 1452
- Timestamp:
- 09/25/09 15:01:57 (15 years ago)
- Location:
- trunk/workflow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.bo_userinterface.inc.php
r1451 r1452 1115 1115 $voip_enabled = false; 1116 1116 $voip_groups = array(); 1117 if ( $ GLOBALS['phpgw_info']['server']['voip_groups'] )1118 { 1119 foreach ( explode(",",$ GLOBALS['phpgw_info']['server']['voip_groups']) as $i => $voip_group )1117 if ( $_SESSION['phpgw_info']['workflow']['voip_groups'] ) 1118 { 1119 foreach ( explode(",",$_SESSION['phpgw_info']['workflow']['voip_groups']) as $i => $voip_group ) 1120 1120 { 1121 1121 $a_voip = explode(";",$voip_group); … … 1123 1123 } 1124 1124 1125 foreach($ GLOBALS['phpgw']->accounts->membership()as $idx => $group)1125 foreach($_SESSION['phpgw_info']['workflow']['user_groups'] as $idx => $group) 1126 1126 { 1127 if(array_search($group ['account_name'],$voip_groups) !== FALSE)1127 if(array_search($group,$voip_groups) !== FALSE) 1128 1128 { 1129 1129 $voip_enabled = true; -
trunk/workflow/inc/class.ui_ajaxinterface.inc.php
r795 r1452 70 70 $_SESSION['phpgw_info']['workflow']['user_can_clean_aborted_instances'] = $_SESSION['phpgw_info']['workflow']['user_can_monitor']; 71 71 $_SESSION['phpgw_info']['workflow']['user']['preferences'] = $GLOBALS['phpgw_info']['user']['preferences']['workflow']; 72 $_SESSION['phpgw_info']['workflow']['voip_groups'] = $GLOBALS['phpgw_info']['server']['voip_groups']; 72 73 } 73 74 -
trunk/workflow/js/userinterface/orgchart.js
r1451 r1452 354 354 else 355 355 { 356 content += '<a href="javascript:void(0);" onclick="callVoipConnect(\''+employees[i]['telephoneNumber']+'\')"';356 content += '<a href="javascript:void(0);" title="Discar para Telefone Comercial" onclick="callVoipConnect(\''+employees[i]['telephoneNumber']+'\')"'; 357 357 content += '>' + employees[i]['telephoneNumber'] + '</a>'; 358 358 } … … 648 648 var phoneNumber = card_data[ 'Telefone' ]; 649 649 if ( workflowUserInterfaceClickToCall ) 650 { 651 phone.title = "Discar para Telefone Comercial" 650 652 phone.onclick = function( ) 651 653 { 652 654 callVoipConnect( phoneNumber ); 653 655 } 656 } 654 657 655 658 card.appendChild( phone );
Note: See TracChangeset
for help on using the changeset viewer.