summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-16 09:57:44 +0200
committeremkael <emkael@tlen.pl>2016-05-16 09:57:44 +0200
commitcf228713b845a93527e4ae934c89a984325b39e0 (patch)
treeeace134bd5e4c34d68b5bd1a898393dc97466394 /app/php
parent6ff1040ca95b3a2f565baae9dfc2d552a17bed41 (diff)
* JS fallback on logout callback error
Diffstat (limited to 'app/php')
-rw-r--r--app/php/controls/HeaderMenu.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/php/controls/HeaderMenu.tpl b/app/php/controls/HeaderMenu.tpl
index 9b32a15..a7e666d 100644
--- a/app/php/controls/HeaderMenu.tpl
+++ b/app/php/controls/HeaderMenu.tpl
@@ -14,6 +14,8 @@
<com:TActiveLinkButton OnCommand="logoutUser">
<prop:Text>Logout (<%= $this->User->Name %>)</prop:Text>
<prop:Visible><%= !$this->User->IsGuest %></prop:Visible>
+ <prop:ClientSide.OnFailure>window.location.reload()</prop:ClientSide.OnFailure>
+ <prop:ClientSide.OnException>window.location.reload()</prop:ClientSide.OnException>
</com:TActiveLinkButton>
<com:THyperLink Text="New user">
<prop:NavigateUrl><%= $this->Service->constructUrl('Signup') %></prop:NavigateUrl>