Skip to content

Commit

Permalink
Fix delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
ac-61 committed Feb 9, 2022
1 parent 22df21b commit 22e78df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/js/webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var Webhooks = {
function makeWebhookCard(data) {
// prettier-ignore
$("#webhooksParent").append(
"<div class='card col s12'id='webhook_card_" + webhooksCounter + "' webhookId='" + webhooksCounter + "'>" +
"<div class='card col s12' id='webhook_card_" + webhooksCounter + "' webhookId='" + webhooksCounter + "'>" +
"<ul>" +
"<li class='row'>" +
"<div id='webhookActionEl' class='input-field col s3'>" +
Expand Down Expand Up @@ -187,7 +187,7 @@ function makeWebhookCard(data) {

//Delete webhook button
$("#deleteWebhook_" + webhooksCounter).on("click", function () {
var deleteThis = $(this).parent();
var deleteThis = $(this).parent().parent().parent();
deleteThis.remove();
});

Expand Down

0 comments on commit 22e78df

Please sign in to comment.