From 04cb8408c0e0b8fd9bdc78db216a36fd08014e05 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 25 May 2013 07:29:25 +0200 Subject: [PATCH] Fixed issue with multible new issues. --- .../app/controllers/agent_ticket_create.js.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 c3a58983d..092f38a09 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee @@ -210,7 +210,9 @@ class App.TicketCreate extends App.Controller userNew: (e) => e.preventDefault() - new UserNew( type: @type ) + new UserNew( + create_screen: @ + ) cancel: -> @navigate '#' @@ -347,8 +349,8 @@ class UserNew extends App.ControllerModal # force to reload object callbackReload = (user) -> realname = user.displayName() - $('#create_' + ui.type + '_' + ui.id + '_customer_id').val( user.id ) - $('#create_' + ui.type + '_' + ui.id + '_customer_id_autocompletion').val( realname ) + ui.create_screen.el.find('[name=customer_id]').val( user.id ) + ui.create_screen.el.find('[name=customer_id_autocompletion]').val( realname ) # start customer info controller ui.userInfo( user_id: user.id )