From 642cc925f588f832c9e4e59b0dfa388931bdb93a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 19 Jun 2013 14:23:43 +0200 Subject: [PATCH] Fixed not working text modules. --- .../app/controllers/agent_ticket_create.js.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 6a5104bff..e192d505e 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee @@ -215,13 +215,13 @@ class App.TicketCreate extends App.Controller template_id: template['id'], ) + @formDefault = @formParam( @el.find('.ticket-create') ) + # show text module UI new App.TextModuleUI( - el: @el, + el: $('.ticket-create') ) - @formDefault = @formParam( @el.find('.ticket-create') ) - localUserInfo: (params) => @userInfo( user_id: params.customer_id @@ -286,7 +286,7 @@ class App.TicketCreate extends App.Controller # show errors in form if errors - @log 'error new', errors + console.log 'error new', errors @formValidate( form: e.target, errors: errors ) # save ticket, create article @@ -305,8 +305,7 @@ class App.TicketCreate extends App.Controller link: "#ticket/zoom/#{@id}" timeout: 12000, - # create new create screen -# ui.render() + # close ticket create task App.TaskManager.remove( ui.task_key ) # scroll to top