Content Back button uses history.back() if there's no list and no sidebar

pull/5742/merge
Aleksander Machniak 8 years ago
parent 96d3fedde3
commit 5393c61f22

@ -66,7 +66,15 @@ function rcube_elastic_ui()
// menu/sidebar button
buttons.menu.on('click', function() { show_menu(); return false; });
buttons.back_sidebar.on('click', function() { show_sidebar(); return false; });
buttons.back_list.on('click', function() { hide_content(); return false; });
buttons.back_list.on('click', function() {
if (!layout.list && !layout.sidebar) {
history.back();
}
else {
hide_content();
}
return false;
});
// Semantic-UI style

Loading…
Cancel
Save