diff --git a/app/active_calls/active_calls.php b/app/active_calls/active_calls.php index 9fe3e0d148..882f4d624c 100644 --- a/app/active_calls/active_calls.php +++ b/app/active_calls/active_calls.php @@ -207,6 +207,12 @@ if (permission_exists('call_active_hangup')) { 'type' => 'button', 'style' => 'display: none;', 'label' => $text['label-hangup'], + 'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { " + . "hangup_selected();" + . "} else { " + . "this.blur(); " + . "return false; " + . "}", 'icon' => 'phone-slash', ]) . "\n"; }