Sha256: a8a88b25d6164d118296eb999caa8716502e4e5cfe967f6a8db53677654095ab
Contents?: true
Size: 595 Bytes
Versions: 24
Compression:
Stored size: 595 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) @options.photos.bind('add', @addOne) addAll: () => @options.photos.each(@addOne) addOne: (photo) => view = new Application.Views.Photos.PhotoView({model : photo}) @$("#photos").append(view.render().el) render: => @$el.html(@template(photos: @options.photos.toJSON() )) @addAll() return this
Version data entries
24 entries across 24 versions & 2 rubygems