diff --git a/includes/html/modal/discover_service_template.inc.php b/includes/html/modal/discover_service_template.inc.php
index cf4d04f236..3922154d3f 100644
--- a/includes/html/modal/discover_service_template.inc.php
+++ b/includes/html/modal/discover_service_template.inc.php
@@ -60,17 +60,17 @@ if (Auth::user()->hasGlobalAdmin()) {
if (result.status == 0) {
// Yay.
$('#message').html('
' + result.message + '
');
- $("#confirm-delete").modal('hide');
+ $("#confirm-discover").modal('hide');
}
else {
// Nay.
$("#message").html('' + result.message + '
');
- $("#confirm-delete").modal('hide');
+ $("#confirm-discover").modal('hide');
}
},
error: function () {
$("#message").html('An error occurred discovering this service template.
');
- $("#confirm-delete").modal('hide');
+ $("#confirm-discover").modal('hide');
}
});
});