Improved show/hide behaviour.
This commit is contained in:
parent
3a4d4f9375
commit
fbbffbbb7b
1 changed files with 2 additions and 4 deletions
|
@ -9,7 +9,7 @@ class App.TicketStats extends App.Controller
|
||||||
# subscribe and reload data / fetch new data if triggered
|
# subscribe and reload data / fetch new data if triggered
|
||||||
if @user
|
if @user
|
||||||
@subscribeId = App.User.full( @user.id, @load, false, true )
|
@subscribeId = App.User.full( @user.id, @load, false, true )
|
||||||
if @organization
|
else if @organization
|
||||||
@subscribeId = App.Organization.full( @organization.id, @load, false, true )
|
@subscribeId = App.Organization.full( @organization.id, @load, false, true )
|
||||||
|
|
||||||
release: =>
|
release: =>
|
||||||
|
@ -32,9 +32,7 @@ class App.TicketStats extends App.Controller
|
||||||
data: data
|
data: data
|
||||||
processData: true
|
processData: true
|
||||||
success: (data) =>
|
success: (data) =>
|
||||||
# load assets
|
|
||||||
App.Collection.loadAssets( data.assets )
|
App.Collection.loadAssets( data.assets )
|
||||||
|
|
||||||
@render(data)
|
@render(data)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue