Sha256: d1ddfb49ef6dbae10bfb659ee37c429332ebc406acc1f944cafeeee5e17a6a11
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
class @NewTicketModal constructor: (options)-> @slug = options.slug @color = options.color @options = options @template = HandlebarsTemplates['new_ticket/modal'] show: -> @$modal = $(@template(color: @color)).modal() @$modal.on 'hidden', => @$modal.remove() @options.onClose() if @options.onClose xhr = $.get "/projects/#{@slug}/tickets/new" xhr.success (data)=> options = _.extend(data, @options) options.onCreate = ((ticket)=> @options.onCreate(ticket, @$modal)) if options.onCreate view = new NewTicketView(options) view.render() $('#reset_ticket').click (e)=> e.preventDefault() @$modal.modal('hide')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/assets/javascripts/app/views/new_ticket_modal.coffee |