From 41468e9da31b7de42635abfae8ca312dacf5bad9 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Mar 2020 19:48:41 -0600 Subject: [PATCH] Call Center - Queues & Agents: Modal integration. --- app/call_centers/call_center_agents.php | 6 +++++- app/call_centers/call_center_queues.php | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/call_centers/call_center_agents.php b/app/call_centers/call_center_agents.php index d0770bcc0b..5542f2fe77 100644 --- a/app/call_centers/call_center_agents.php +++ b/app/call_centers/call_center_agents.php @@ -126,7 +126,7 @@ echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'call_center_agent_edit.php']); } if (permission_exists('call_center_agent_delete') && $result) { - echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'id'=>'btn_delete','onclick'=>"if (confirm('".$text['confirm-delete']."')) { list_action_set('delete'); list_form_submit('form_list'); } else { this.blur(); return false; }"]); + echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','onclick'=>"modal_open('modal-delete','btn_delete');"]); } echo "