This function will refresh Atrium's Navigation panel, causing all top-level items to be reloaded from the current Atrium database contents. This can be used to reload the menu items when the Atrium database has changed, without reloading the entire Atrium page. Calling this function is equivalent to the user clicking on the Refresh icon on the Navigation panel.

There are no parameters or return value.



Refresh Navigation Panel Periodically
setInterval(function(){ Atrium.api.refreshNavPanel(); }, (20 * 60 * 1000)); //Refresh the Navigation panel every 20 minutes

Where do you store custom JavaScript for Atrium? In a script in your /www/<installation-name>/htdocs/profoundui/userdata/extension/atrium/ folder. For example, if your installation is named "profoundui", then you can define the function in /www/profoundui/htdocs/profoundui/userdata/extension/atrium/custom.js