Added Original URL and Pin URL to lightbox of items.

This commit is contained in:
Isaac Bythewood
2013-09-24 19:24:12 +00:00
parent a4f3adc2df
commit 795a905596
6 changed files with 22 additions and 1 deletions

View File

@@ -77,6 +77,15 @@ $(window).load(function() {
// Start Global Init Function
window.lightbox = function() {
var links = $('body').find('.lightbox');
if (pinFilter) {
var promise = getPinData(pinFilter);
promise.success(function(pin) {
createBox(pin);
});
promise.error(function() {
message('Problem problem fetching pin data.', 'alert alert-error');
});
}
return links.each(function() {
$(this).off('click');
$(this).click(function(e) {
@@ -91,5 +100,6 @@ $(window).load(function() {
});
});
}
// End Global Init Function
});