Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/jTimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,6 @@
{
timeout.priorCountDown = elem;
},
/**
* Hides the countdown alert
*/
hideCountdownAlert: function()
{
timeout.timeoutWarning = false;

var timeoutAlert = $('#jTimeoutAlert');

if (timeoutAlert.length > 0)
{
timeoutAlert.closeAlert();
}
},
setMouseTimeout: function(timeout)
{
this.mouseTimeout = timeout;
Expand Down Expand Up @@ -241,7 +227,7 @@
{
timeout.stopFlashing();
timeout.stopPriorCountdown();
timeout.hideCountdownAlert();
timeout.options.hideCountdownAlert();
}
},
/* Kill the plugin by removing all event handlers and current activities (like flashing) */
Expand Down Expand Up @@ -369,6 +355,20 @@
onSessionExtended: function(timeout)
{
$('#jTimedoutAlert').closeAlert();
},
/**
* Hides the countdown alert
*/
hideCountdownAlert: function()
{
timeout.timeoutWarning = false;

var timeoutAlert = $('#jTimeoutAlert');

if (timeoutAlert.length > 0)
{
timeoutAlert.closeAlert();
}
}
};

Expand Down