Fixed not working text modules.
This commit is contained in:
parent
ca0a25e848
commit
642cc925f5
1 changed files with 5 additions and 6 deletions
|
@ -215,13 +215,13 @@ class App.TicketCreate extends App.Controller
|
||||||
template_id: template['id'],
|
template_id: template['id'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@formDefault = @formParam( @el.find('.ticket-create') )
|
||||||
|
|
||||||
# show text module UI
|
# show text module UI
|
||||||
new App.TextModuleUI(
|
new App.TextModuleUI(
|
||||||
el: @el,
|
el: $('.ticket-create')
|
||||||
)
|
)
|
||||||
|
|
||||||
@formDefault = @formParam( @el.find('.ticket-create') )
|
|
||||||
|
|
||||||
localUserInfo: (params) =>
|
localUserInfo: (params) =>
|
||||||
@userInfo(
|
@userInfo(
|
||||||
user_id: params.customer_id
|
user_id: params.customer_id
|
||||||
|
@ -286,7 +286,7 @@ class App.TicketCreate extends App.Controller
|
||||||
|
|
||||||
# show errors in form
|
# show errors in form
|
||||||
if errors
|
if errors
|
||||||
@log 'error new', errors
|
console.log 'error new', errors
|
||||||
@formValidate( form: e.target, errors: errors )
|
@formValidate( form: e.target, errors: errors )
|
||||||
|
|
||||||
# save ticket, create article
|
# save ticket, create article
|
||||||
|
@ -305,8 +305,7 @@ class App.TicketCreate extends App.Controller
|
||||||
link: "#ticket/zoom/#{@id}"
|
link: "#ticket/zoom/#{@id}"
|
||||||
timeout: 12000,
|
timeout: 12000,
|
||||||
|
|
||||||
# create new create screen
|
# close ticket create task
|
||||||
# ui.render()
|
|
||||||
App.TaskManager.remove( ui.task_key )
|
App.TaskManager.remove( ui.task_key )
|
||||||
|
|
||||||
# scroll to top
|
# scroll to top
|
||||||
|
|
Loading…
Reference in a new issue