mirror of
https://github.com/pinry/pinry.git
synced 2026-05-07 02:26:36 +02:00
Feature: Add heart js event
This commit is contained in:
committed by
Isaac Bythewood
parent
9b592ebac6
commit
0c6c7f4a26
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user