Added support for inline translation mode.

This commit is contained in:
Martin Edenhofer 2016-04-11 15:31:08 +02:00
parent 4fc0967ea1
commit 065605fe3c

View file

@ -21,12 +21,13 @@ class Index extends App.Controller
type: 'GET' type: 'GET'
url: "#{@apiPath}/user_devices" url: "#{@apiPath}/user_devices"
success: (data) => success: (data) =>
@render(data) @data = data
@render()
) )
render: (data) => render: =>
@html App.view('profile/devices')( @html App.view('profile/devices')(
devices: data devices: @data || []
) )
delete: (e) => delete: (e) =>