Further improve lightbox by getting rid of all the data tags and use ajax call for pin

This commit is contained in:
Isaac Bythewood
2013-02-27 06:03:05 +00:00
parent 258b5ecabf
commit 96af25f5fb
5 changed files with 20 additions and 32 deletions

View File

@@ -20,3 +20,9 @@ function cleanTags(tags) {
}
return tags
}
function getPinData(pinId) {
var apiUrl = '/api/v1/pin/'+pinId+'/?format=json';
return $.get(apiUrl);
}