|
|
@@ -70,6 +70,7 @@ $(window).load(function() { |
|
|
|
// Set which items are editable by the current user |
|
|
|
for (var i=0; i < pins.objects.length; i++) |
|
|
|
pins.objects[i].editable = (pins.objects[i].submitter.username == currentUser); |
|
|
|
console.log(pins.objects); |
|
|
|
|
|
|
|
// Use the fetched pins as our context for our pins template |
|
|
|
var template = Handlebars.compile($('#pins-template').html()); |
|
|
|