Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Revert changes to rendering of users to fix log in as feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmitre committed Jul 23, 2014
1 parent 74e0954 commit c6a7f9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion app/assets/javascripts/router.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class BonnieRouter extends Backbone.Router
@calculator.cancelCalculations()
@users = new Thorax.Collections.Users()
usersView = new Thorax.Views.Users(collection: @users)
@users.fetch(success: => usersView.render())
@mainView.setView(usersView)

renderPatientBuilder: (measureHqmfSetId, patientId) ->
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/views/users_view.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Thorax.Views.Users extends Thorax.Views.BonnieView
@activePatientsCount = @activeUsers.reduce(((sum, user) -> sum + user.get('patient_count')), 0)
@activePatientsMax = _.max(@activeUsers.pluck('patient_count'))
@topTenPatientCounts = _((new Thorax.Collection(@collection.models, comparator: (u) -> parseInt(u.get('patient_count')) * -1 )).sort().pluck('patient_count')).first(10)
@render()

sortUsers: (e) ->
attr = $(e.target).val()
Expand Down

0 comments on commit c6a7f9d

Please sign in to comment.