gtn / exaport

exabis eportfolio
http://www.exabis.at
13 stars 13 forks source link

Improve performance when building the share porfolio user list #9

Closed abuzakaria closed 9 years ago

abuzakaria commented 9 years ago

For a large number of users in many courses, the userlist loading is super slow and chrome prompts to kill pages. The 'each' block for 'shareusers' checkbox is the reason behind it. The 'each' block is removed. A new block is added which while loading the page at start checks if all users are selected and then check the course's share all checkbox depending on this, and adjust the notify button too. This improves the performance if there is a large number of users.

ariepl commented 9 years ago

Thank you abuzakaria, we have integrated your code!