From 3b586cb018c9a0e1d4435f6fed9c3e8f4f6bf658 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 24 May 2013 23:34:32 +0200 Subject: [PATCH] Improved task title generation. --- .../app/controllers/agent_ticket_create.js.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee index 900b879e1..c3a58983d 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee @@ -50,10 +50,14 @@ class App.TicketCreate extends App.Controller @render(defaults) meta: => + text = App.i18n.translateInline( @article_attributes['title'] ) + subject = @el.find('[name=subject]').val() + if subject + text = "#{text}: #{subject}" meta = url: @url() - head: App.i18n.translateInline( @article_attributes['title'] ) - title: App.i18n.translateInline( @article_attributes['title'] ) + head: text + title: text id: @type url: =>