From 968edb040df2c40de024c1f0bbc7ea8944619c13 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:23:38 -0700 Subject: [PATCH] Domains: Add toggle confirmation for true/false button (#7720) --- core/domains/domains.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/domains/domains.php b/core/domains/domains.php index 36419e53a..be326428a 100644 --- a/core/domains/domains.php +++ b/core/domains/domains.php @@ -291,7 +291,8 @@ echo " \n"; if (permission_exists('domain_edit')) { echo " \n"; - echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['domain_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['domain_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');"])]); echo " \n"; } else {