mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add hangup confirmation (#7423)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user