Improved task title generation.

This commit is contained in:
Martin Edenhofer 2013-05-24 23:34:32 +02:00
parent 7e37dbd9a0
commit 3b586cb018

View file

@ -50,10 +50,14 @@ class App.TicketCreate extends App.Controller
@render(defaults) @render(defaults)
meta: => meta: =>
text = App.i18n.translateInline( @article_attributes['title'] )
subject = @el.find('[name=subject]').val()
if subject
text = "#{text}: #{subject}"
meta = meta =
url: @url() url: @url()
head: App.i18n.translateInline( @article_attributes['title'] ) head: text
title: App.i18n.translateInline( @article_attributes['title'] ) title: text
id: @type id: @type
url: => url: =>