Last active
December 31, 2015 16:49
-
-
Save unamashana/8016310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SB.Views.TicketSummary = Backbone.View.extend( | |
events: | |
"click .name": "openTicket" | |
"click .subject": "openTicket" | |
initialize: -> | |
@model = @options.model | |
_.bindAll this, 'openTicket' | |
$(@el).html SB.Utils.renderTemplate("tickets/summary")(@model.toJSON()) | |
openTicket: -> | |
ticket_view = new SB.Views.Ticket model: @model | |
$('body').html ticket_view.el | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment