Improved task meta data update.
This commit is contained in:
parent
4eea6ac2e8
commit
facd2857c4
3 changed files with 6 additions and 1 deletions
|
@ -195,6 +195,9 @@ class App.TicketCreate extends App.Controller
|
||||||
form_data: @edit_form
|
form_data: @edit_form
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# update taskbar with new meta data
|
||||||
|
App.Event.trigger 'task:render'
|
||||||
|
|
||||||
# add elastic to textarea
|
# add elastic to textarea
|
||||||
@el.find('textarea').elastic()
|
@el.find('textarea').elastic()
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,8 @@ class App.TicketZoom extends App.Controller
|
||||||
article = App.Collection.find( 'TicketArticle', article_id )
|
article = App.Collection.find( 'TicketArticle', article_id )
|
||||||
@articles.push article
|
@articles.push article
|
||||||
|
|
||||||
App.Event.trigger 'ui:rerender'
|
# update taskbar with new meta data
|
||||||
|
App.Event.trigger 'task:render'
|
||||||
|
|
||||||
# rework articles
|
# rework articles
|
||||||
for article in @articles
|
for article in @articles
|
||||||
|
|
|
@ -206,6 +206,7 @@ class _Singleton extends App.Controller
|
||||||
for item, value of params
|
for item, value of params
|
||||||
task.updateAttribute(item, value)
|
task.updateAttribute(item, value)
|
||||||
# task.save()
|
# task.save()
|
||||||
|
App.Event.trigger 'task:render'
|
||||||
|
|
||||||
remove: ( key, to_not_show = false ) =>
|
remove: ( key, to_not_show = false ) =>
|
||||||
task = @get( key )
|
task = @get( key )
|
||||||
|
|
Loading…
Reference in a new issue