Improved show/hide behaviour.

This commit is contained in:
Martin Edenhofer 2014-11-10 13:53:01 +01:00
parent 3a4d4f9375
commit fbbffbbb7b

View file

@ -9,7 +9,7 @@ class App.TicketStats extends App.Controller
# subscribe and reload data / fetch new data if triggered
if @user
@subscribeId = App.User.full( @user.id, @load, false, true )
if @organization
else if @organization
@subscribeId = App.Organization.full( @organization.id, @load, false, true )
release: =>
@ -32,9 +32,7 @@ class App.TicketStats extends App.Controller
data: data
processData: true
success: (data) =>
# load assets
App.Collection.loadAssets( data.assets )
@render(data)
)