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)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -152,7 +150,7 @@ class TicketStatsFrequency extends App.Controller
|
||||||
|
|
||||||
for item in @ticket_volume_by_year
|
for item in @ticket_volume_by_year
|
||||||
item.created_in_percent = 100 / max * item.created
|
item.created_in_percent = 100 / max * item.created
|
||||||
item.closed_in_percent = 100 / max * item.closed
|
item.closed_in_percent = 100 / max * item.closed
|
||||||
|
|
||||||
@html App.view('widget/ticket_stats_frequency')(
|
@html App.view('widget/ticket_stats_frequency')(
|
||||||
ticket_volume_by_year: @ticket_volume_by_year.reverse()
|
ticket_volume_by_year: @ticket_volume_by_year.reverse()
|
||||||
|
|
Loading…
Reference in a new issue