Sha256: f599806014f5e01a710d48aa50176e72488b112d80d854ef28628e351a3954c0
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
Application.Views.Photos ||= {} class Application.Views.Photos.UploadIndexView extends Backbone.View template: JST["backbone/templates/photos/upload_index"] tagName: 'ul' className: 'thumbnails' initialize: () -> @options.photos.bind('reset', @addAll) addAll: () => @options.photos.each(@addOne) addOne: (photo) => view = new Application.Views.Photos.PhotoView({model : photo}) @$(".photos-container").append(view.render().el) render: => @$el.html(@template(photos: @options.photos.toJSON() )) @addAll() return this
Version data entries
2 entries across 2 versions & 2 rubygems