mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
add modal on Webchat
This commit is contained in:
parent
d644714fcb
commit
bcc68c0034
@ -111,6 +111,18 @@ echo "<div style='width:100%'>".html_print_button(
|
|||||||
var first_time = true;
|
var first_time = true;
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
confirmDialog({
|
||||||
|
title: "Attention",
|
||||||
|
message:
|
||||||
|
"<h4 style='text-align: center;'>This feature will be removed from the console in the next version of Pandora FMS.<br><br> If you want to keep the history, make a backup.</h4>",
|
||||||
|
cancel: "Cancel",
|
||||||
|
ok: "Ok",
|
||||||
|
onAccept: function() {
|
||||||
|
// Continue execution.
|
||||||
|
var nodo = event.target.offsetParent;
|
||||||
|
deleteCell(id, nodo.parentNode);
|
||||||
|
}
|
||||||
|
});
|
||||||
$("input[name=\"message_box\"]").keydown(function(e) {
|
$("input[name=\"message_box\"]").keydown(function(e) {
|
||||||
//Enter key.
|
//Enter key.
|
||||||
if (e.keyCode == 13) {
|
if (e.keyCode == 13) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user