Feature: Add heart js event

This commit is contained in:
winkidney
2019-02-22 06:48:56 -08:00
committed by Isaac Bythewood
parent 9b592ebac6
commit 0c6c7f4a26

View File

@@ -48,6 +48,16 @@ $(window).load(function() {
colHeights[sCol] += block.height()+(blockMargin);
}
// Open add-to-board panel
$('glyphicon-heart').each(function() {
var thisPin = $(this);
$(this).off('click');
$(this).click(function() {
$(this).off('click');
pinForm($(this).data('id'));
});
});
// Edit pin if pencil icon clicked
$('.glyphicon-pencil').each(function() {
var thisPin = $(this);