Clone
 

turril <lightscape2001@gmail.com> in Sakai.Git

SAK-44071: Update Presence correctly by clearing timer and update active tabs (#8438)

* SAK-44071: Update Presence correctly by clearing timer and update when browser tab is active.

* SAK-44071: Updates to improve JS according to Codacy/PR Quality Review.

* SAK-44071: define document.addEventListener early as empty function and redefine after all functions are declared.

* SAK-44071: Updated code after review - removed variable declarations that where not used.

SAK-41140: Change initial run of updatePresence to be delayed if function doesn't exist yet. (#8437)

* SAK-41140: Change initial run of updatePresence to be delayed if function doesn't exist yet.

* SAK-41140: On review changed the name of the function to be more descriptive.

SAK-30343: Included type field in constructor of EntityUser.