Fixed not working text modules.
This commit is contained in:
parent
0ebd0346b7
commit
040b0581fb
4 changed files with 11 additions and 13 deletions
|
@ -217,7 +217,7 @@ class App.TicketCreate extends App.Controller
|
||||||
|
|
||||||
# show text module UI
|
# show text module UI
|
||||||
new App.TextModuleUI(
|
new App.TextModuleUI(
|
||||||
el: @el.find('[data-id="text_module"]'),
|
el: @el,
|
||||||
)
|
)
|
||||||
|
|
||||||
@formDefault = @formParam( @el.find('.ticket-create') )
|
@formDefault = @formParam( @el.find('.ticket-create') )
|
||||||
|
|
|
@ -26,8 +26,7 @@ class App.TextModuleUI extends App.Controller
|
||||||
.find('small')
|
.find('small')
|
||||||
.text("(" + e.keywords + ")").end()
|
.text("(" + e.keywords + ")").end()
|
||||||
element.append(template)
|
element.append(template)
|
||||||
$('textarea').sew({values: values, token: '::', elementFactory: elementFactory })
|
@el.find('textarea').sew({values: values, token: '::', elementFactory: elementFactory })
|
||||||
|
|
||||||
|
|
||||||
class App.TextModuleUIOld extends App.Controller
|
class App.TextModuleUIOld extends App.Controller
|
||||||
events:
|
events:
|
||||||
|
|
|
@ -147,8 +147,7 @@ class App.TicketZoom extends App.Controller
|
||||||
render: (force) =>
|
render: (force) =>
|
||||||
|
|
||||||
# get data
|
# get data
|
||||||
if !@ticket
|
@ticket = App.Collection.find( 'Ticket', @ticket_id )
|
||||||
@ticket = App.Collection.find( 'Ticket', @ticket_id )
|
|
||||||
|
|
||||||
# update taskbar with new meta data
|
# update taskbar with new meta data
|
||||||
App.Event.trigger 'task:render'
|
App.Event.trigger 'task:render'
|
||||||
|
@ -173,6 +172,14 @@ class App.TicketZoom extends App.Controller
|
||||||
@editDone = true
|
@editDone = true
|
||||||
@Edit()
|
@Edit()
|
||||||
|
|
||||||
|
# show text module UI
|
||||||
|
if !@isRole('Customer')
|
||||||
|
new App.TextModuleUI(
|
||||||
|
el: @el
|
||||||
|
data:
|
||||||
|
ticket: @ticket
|
||||||
|
)
|
||||||
|
|
||||||
# scroll to article if given
|
# scroll to article if given
|
||||||
if @article_id && document.getElementById( 'article-' + @article_id )
|
if @article_id && document.getElementById( 'article-' + @article_id )
|
||||||
offset = document.getElementById( 'article-' + @article_id ).offsetTop
|
offset = document.getElementById( 'article-' + @article_id ).offsetTop
|
||||||
|
@ -309,13 +316,6 @@ class TicketAction extends App.Controller
|
||||||
object: @ticket
|
object: @ticket
|
||||||
)
|
)
|
||||||
|
|
||||||
# show text module UI
|
|
||||||
if !@isRole('Customer')
|
|
||||||
new App.TextModuleUI(
|
|
||||||
el: @el.find('.text_module')
|
|
||||||
data:
|
|
||||||
ticket: @ticket
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class Edit extends App.Controller
|
class Edit extends App.Controller
|
||||||
|
|
|
@ -2,4 +2,3 @@
|
||||||
<div class="action_info"></div>
|
<div class="action_info"></div>
|
||||||
<div class="tag_info"></div>
|
<div class="tag_info"></div>
|
||||||
<div class="link_info"></div>
|
<div class="link_info"></div>
|
||||||
<div class="text_module"></div>
|
|
||||||
|
|
Loading…
Reference in a new issue