forked from extern/egroupware
* all applications: Fix clicking on favorites in mobile template pops up logout prompt
This commit is contained in:
parent
695317985e
commit
9cc9141422
@ -1044,7 +1044,7 @@
|
||||
history.pushState({type:'main'}, 'main', '#main');
|
||||
jQuery(window).on('popstate', function(e){
|
||||
// Check if user wants to logout and ask a confirmation
|
||||
if (e.originalEvent.state == null || typeof e.originalEvent.state == 'undefined') {
|
||||
if (window.location.hash == '#main') {
|
||||
et2_dialog.show_dialog(function(button){
|
||||
if (button === 3){
|
||||
history.forward();
|
||||
@ -1054,7 +1054,7 @@
|
||||
}, 'Are you sure you want to logout?', 'Logout');
|
||||
}
|
||||
// Execute action based on
|
||||
switch (e.originalEvent.state.type)
|
||||
switch (e.originalEvent.state && e.originalEvent.state.type)
|
||||
{
|
||||
case 'popup':
|
||||
window.framework.popups[e.originalEvent.state.index].close(e.originalEvent.state.index);
|
||||
|
Loading…
Reference in New Issue
Block a user