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:
Krzysztof Klimonda
2013-03-19 19:23:50 +01:00
parent 98c9df7d1d
commit 51ba441af5

View File

@@ -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;
});