From: Peter Pennings <peterpnns(a)gmail.com>
This patch avoid the blink of the timeout dialog on login action
Peter Pennings (1):
Blink dialog session timeout
ui/js/src/wok.session.js | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
--
2.7.4
Show replies by date
From: Peter Pennings <peterpnns(a)gmail.com>
---
ui/js/src/wok.session.js | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/ui/js/src/wok.session.js b/ui/js/src/wok.session.js
index 4092ce8..92d928c 100644
--- a/ui/js/src/wok.session.js
+++ b/ui/js/src/wok.session.js
@@ -28,18 +28,20 @@ wok.session = {
expiringCounter: function(){
var counter = wok.session.remainingSessionTime - wok.session.remaingTimeToShowAlert;
- wok.session.expiringTimeout = setTimeout(function(){
- wok.session.flagInTimer = true;
- $("#session-expiring-alert").show();
- $("#session-expiring-alert p").html("<script>var message =
i18n['WOKSESS0001M'].replace('%1', 30);"
- + "$('#session-expiring-alert p').html(message);"
- + "var n = 30;"
- + "wok.session.oneSecondExternalCounter = setTimeout(countDown,1000);"
- + "function countDown(){n--; if(n > 0){wok.session.oneSecondInternalCounter =
setTimeout(countDown,1000);}"
- + "message = i18n['WOKSESS0001M'].replace('%1', n);"
- + "$('#session-expiring-alert p').html(message);}</script>"
- );
- }, counter);
+ if (!isNaN(counter)) {
+ wok.session.expiringTimeout = setTimeout(function(){
+ wok.session.flagInTimer = true;
+ $("#session-expiring-alert").show();
+ $("#session-expiring-alert p").html("<script>var message =
i18n['WOKSESS0001M'].replace('%1', 30);"
+ + "$('#session-expiring-alert p').html(message);"
+ + "var n = 30;"
+ + "wok.session.oneSecondExternalCounter = setTimeout(countDown,1000);"
+ + "function countDown(){n--; if(n > 0){wok.session.oneSecondInternalCounter
= setTimeout(countDown,1000);}"
+ + "message = i18n['WOKSESS0001M'].replace('%1', n);"
+ + "$('#session-expiring-alert p').html(message);}</script>"
+ );
+ }, counter);
+ }
},
refreshExpiringCounter: function() {
--
2.7.4
Applied. Thanks.
Regards,
Aline Manera