Skip to content

Commit

Permalink
UI-1216: Fixed the logoutTimer references
Browse files Browse the repository at this point in the history
Conflicts:
	js/lib/monster.util.js
  • Loading branch information
JRMaitre committed Feb 23, 2015
1 parent 905a8a0 commit f4d9546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/lib/monster.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ define(function(require){
var util = {

/*
This function will automatically logout the user after %wait% minutes (defaults to 15).
This function will automatically logout the user after %wait% minutes (defaults to 30).
This function will show a warning popup %alertBeforeLogout% minutes before logging out (defaults to 2). If the user moves his cursor, the timer will reset.
*/
autoLogout: function() {
if(!monster.config.hasOwnProperty('logoutTimer') || monster.config.logoutTimer > 0) {
if(!monster.config.whitelabel.hasOwnProperty('logoutTimer') || monster.config.whitelabel.logoutTimer > 0) {
var i18n = monster.apps['core'].i18n.active(),
timerAlert,
timerLogout,
wait = monster.config.logoutTimer || 15,
wait = monster.config.whitelabel.logoutTimer || 30,
alertBeforeLogout = 2,
alertTriggered = false,
alertDialog,
Expand Down

0 comments on commit f4d9546

Please sign in to comment.