Skip to content

Commit 2aee915

Browse files
committed
fix(frontend): event deletion is triggered when clicking outside of delete button context
1 parent 4f5654f commit 2aee915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/calendar/js_modules/route_handlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function applyCalendarPageHandlers() {
2-
$('.event_delete').on("click", function() {
2+
$('.event_delete a').on("click", function() {
33
if (hm_delete_prompt()) {
4-
$(this).parent().submit();
4+
$(this).closest('form').submit();
55
}
66
});
77
$('.cal_title').on("click", function(e) {

0 commit comments

Comments
 (0)