mirror of
https://github.com/pinry/pinry.git
synced 2026-02-09 16:07:06 +01:00
Call lightbox() when new pin is created
We have to call lightbox() when new pin is created so its onClick listener is registered.
This commit is contained in:
@@ -151,6 +151,7 @@ $(window).load(function() {
|
||||
});
|
||||
$('#pins').find('.pin[data-id="'+pin.id+'"]').replaceWith(renderedPin);
|
||||
tileLayout();
|
||||
lightbox();
|
||||
dismissModal(modal);
|
||||
editedPin = null;
|
||||
});
|
||||
@@ -172,6 +173,7 @@ $(window).load(function() {
|
||||
pin = renderTemplate('#pins-template', {pins: [pin]});
|
||||
$('#pins').prepend(pin);
|
||||
tileLayout();
|
||||
lightbox();
|
||||
dismissModal(modal);
|
||||
uploadedImage = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user