Fixed issue with multible new issues.

This commit is contained in:
Martin Edenhofer 2013-05-25 07:29:25 +02:00
parent 3b586cb018
commit 04cb8408c0

View file

@ -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 )