From 1c79f32ebdb72900c5d4f6ce4c38f7299679046f Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Mar 2020 07:49:37 -0600 Subject: [PATCH] Destinations: Modal integration. --- app/destinations/destinations.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 8b5abe54ea..d5dfc656a4 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -181,7 +181,7 @@ echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','style'=>'margin-left: 15px;','link'=>'destination_edit.php']); } if (permission_exists('destination_delete') && $destinations) { - 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 "