Added support for inline translation mode.
This commit is contained in:
parent
4fc0967ea1
commit
065605fe3c
1 changed files with 4 additions and 3 deletions
|
@ -21,12 +21,13 @@ class Index extends App.Controller
|
|||
type: 'GET'
|
||||
url: "#{@apiPath}/user_devices"
|
||||
success: (data) =>
|
||||
@render(data)
|
||||
@data = data
|
||||
@render()
|
||||
)
|
||||
|
||||
render: (data) =>
|
||||
render: =>
|
||||
@html App.view('profile/devices')(
|
||||
devices: data
|
||||
devices: @data || []
|
||||
)
|
||||
|
||||
delete: (e) =>
|
||||
|
|
Loading…
Reference in a new issue