diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index f985795..db3a02e 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -51,6 +51,7 @@ $(window).load(function() { // Delete pin if trash icon clicked $('.icon-trash').each(function() { var thisPin = $(this); + $(this).unbind('click'); $(this).click(function() { $(this).off('click'); var promise = deletePinData($(this).data('id'));