From 6473c33afd6027c1c202a6c9b34b9f73c58a508d Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:23:58 -0700 Subject: [PATCH] Sip Profiles: Add toggle confirmation for true/false button (#7719) --- app/sip_profiles/sip_profiles.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/sip_profiles/sip_profiles.php b/app/sip_profiles/sip_profiles.php index 66ac634281..c655b0320f 100644 --- a/app/sip_profiles/sip_profiles.php +++ b/app/sip_profiles/sip_profiles.php @@ -205,7 +205,8 @@ echo " ".escape($row['sip_profile_hostname'])." \n"; if (permission_exists('sip_profile_edit')) { echo " \n"; - echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['sip_profile_enabled']],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); list_form_submit('form_list')"]); + echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-'.$row['sip_profile_enabled']],'title'=>$text['button-toggle'],'id'=>'btn_toggle_enabled','name'=>'btn_toggle_enabled','onclick'=>"list_self_check('checkbox_".$x."'); modal_open('modal-toggle_enabled','btn_toggle_enabled');"]); + echo modal::create(['id'=>'modal-toggle_enabled','type'=>'toggle','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_toggle_enabled','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('toggle'); list_form_submit('form_list');"])]); } else { echo " \n";