diff --git a/html/includes/modal/poller_groups.inc.php b/html/includes/modal/poller_groups.inc.php
index 81e014f4ab..c966da6ac2 100644
--- a/html/includes/modal/poller_groups.inc.php
+++ b/html/includes/modal/poller_groups.inc.php
@@ -84,11 +84,10 @@ if(is_admin() === false) {
$('#confirm-delete').on('show.bs.modal', function(e) {
group_id = $(e.relatedTarget).data('group_id');
$("#group_id").val(group_id);
- event.preventDefault();
});
$('#group-removal').click('', function(e) {
- event.preventDefault();
+ e.preventDefault();
group_id = $("#group_id").val();
$.ajax({
type: "POST",