Fixed saving of templates.
This commit is contained in:
parent
e58f6c3734
commit
5598ff8ba8
1 changed files with 4 additions and 3 deletions
|
@ -87,10 +87,11 @@ class App.TemplateUI extends App.Controller
|
||||||
if errors
|
if errors
|
||||||
@log 'error new', errors
|
@log 'error new', errors
|
||||||
else
|
else
|
||||||
|
ui = @
|
||||||
template.save(
|
template.save(
|
||||||
success: (r) =>
|
success: ->
|
||||||
@template_id = r.id
|
ui.template_id = @.id
|
||||||
@render()
|
ui.render()
|
||||||
|
|
||||||
error: =>
|
error: =>
|
||||||
@log 'save failed!'
|
@log 'save failed!'
|
||||||
|
|
Loading…
Reference in a new issue