remove first thumbnail; duplicate of big photo

This commit is contained in:
Faldrian 2014-08-03 12:47:44 +02:00
parent 9518ff34da
commit 9d02b0a586

View file

@ -22,7 +22,8 @@ app.views.Content = app.views.Base.extend({
smallPhotos : function() {
var photos = this.model.get("photos")
if(!photos || photos.length < 2) { return }
return photos
photos.splice(0, 1); // remove first photo as it is already shown in big
return photos;
},