#9347 central node deletion

This commit is contained in:
Daniel Maya 2022-08-12 09:44:16 +02:00
parent 2f9d1de8b4
commit 4d7329f1fd
1 changed files with 8 additions and 11 deletions

View File

@ -1997,17 +1997,14 @@ function show_menu(item, data) {
};
}
// Avoid deletion if Pandora FMS node.
if (data.type != 2) {
items_list["delete"] = {
name: delete_menu,
icon: "delete",
disabled: false,
callback: function(key, options) {
delete_nodes();
}
};
}
items_list["delete"] = {
name: delete_menu,
icon: "delete",
disabled: false,
callback: function(key, options) {
delete_nodes();
}
};
$.contextMenu("destroy");
$.contextMenu({