Sha256: 1781dfcd7fe06ae4fa075007378c384d3020d9a529be6c23e1bdb1fa22e55ab5
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
Application.Views.Photos ||= {} class Application.Views.Photos.EditView extends Backbone.View template: JST["backbone/templates/photos/edit"] events: "submit #edit-photo": "update" update: (e) -> e.preventDefault() e.stopPropagation() @model.save(null, success: (photo) => @model = photo window.location.hash = "/#{@model.id}" ) render: -> @$el.html(@template(@model.toJSON() )) this.$("form").backboneLink(@model) return this
Version data entries
4 entries across 4 versions & 2 rubygems