From 44e2df3ac141e36a4f5b1b3faf8dea87793ebcec Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Mar 2020 09:38:50 -0600 Subject: [PATCH] Fax Server: Modal integration. --- app/fax/fax.php | 11 +++++++++-- app/fax/fax_active.php | 1 - app/fax/fax_edit.php | 29 ++++++++++++++++++++--------- app/fax/fax_files.php | 8 ++++++-- app/fax/fax_log_view.php | 6 +++++- app/fax/fax_logs.php | 6 +++++- 6 files changed, 45 insertions(+), 16 deletions(-) diff --git a/app/fax/fax.php b/app/fax/fax.php index 6f70d7c79c..d5e3e22ded 100644 --- a/app/fax/fax.php +++ b/app/fax/fax.php @@ -144,10 +144,10 @@ echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'fax_edit.php']); } if (permission_exists('fax_extension_add') && $result) { - echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'id'=>'btn_copy','onclick'=>"if (confirm('".$text['confirm-copy']."')) { list_action_set('copy'); list_form_submit('form_list'); } else { this.blur(); return false; }"]); + echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'name'=>'btn_copy','onclick'=>"modal_open('modal-copy','btn_copy');"]); } if (permission_exists('fax_extension_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 "