From 177c4b59188e8a373c9f2eb1fb21a72d4f664981 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Mon, 17 Oct 2016 12:59:51 +0200 Subject: [PATCH] fix multiplication of edit comment fields --- app/assets/javascripts/comments.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/comments.js.erb b/app/assets/javascripts/comments.js.erb index b0fe8f0cd..8f0d0f762 100644 --- a/app/assets/javascripts/comments.js.erb +++ b/app/assets/javascripts/comments.js.erb @@ -255,7 +255,7 @@ var Comments = (function() { } function initEditComments(parent) { - $(parent).on('click', '[data-action=edit-comment]', function() { + $(parent).unbind('click').on('click', '[data-action=edit-comment]', function() { var $this = $(this); $.ajax({