Sha256: 1d4c85e7b95ddc234e2bf03f8d95d09da3f6ede9c07f97dcc670de372aba136a
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
Application.Views.Photos ||= {} class Application.Views.Photos.PhotoView extends Backbone.View template: JST["backbone/templates/photos/thumbnail"] events: "click .destroy" : "destroy" "click .photo-link": "photo_link", tagName: "li" className: 'span2' initialize: -> @model.on "change", @render, this @model.on "uploadCompleted", @removeProgressBar, this removeProgressBar: -> @$el.find(".progress").fadeOut() unless @$el is undefined destroy: () -> @model.destroy() this.remove() return false photo_link: () -> render: -> @$el.html(@template(@model.toJSON() )) return this
Version data entries
4 entries across 4 versions & 2 rubygems