Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
// most of render()
this.el.html(this.template())
this.$('input[name=id]').val(this.endpoint.get('id'))
this.$('input[name=group]').val(this.endpoint.get('group'))
this.$('input[name=name]').val(this.endpoint.get('name'))
this.$('input[name=route]').val(this.endpoint.get('route'))
this.$('textarea[name=sample_xml]').val(this.endpoint.get('sample_xml'))
// buildEndpoint(), factory function to assemble an endpoint off of the form
buildEndpoint: function(attrs) {
var endpoint = null
if (attrs.id == "") delete attrs.id // ugh
if (attrs.id) {
endpoint = edi.endpoints.get(attrs.id)
endpoint.set(attrs)
} else {
endpoint = new Endpoint(attrs)
}
return endpoint
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.