Fixed saving of templates.

This commit is contained in:
Martin Edenhofer 2012-07-16 16:04:38 +02:00
parent e58f6c3734
commit 5598ff8ba8

View file

@ -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!'