mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Breadcrumb slides back
This commit is contained in:
parent
9206105dfc
commit
a6f7d7828f
1 changed files with 2 additions and 2 deletions
|
@ -266,9 +266,9 @@ app = Sammy('#main', function (sam) {
|
|||
if (enableSlide) {
|
||||
function leSwap() {
|
||||
rendered.swap(function() {
|
||||
$('.slide').on('click', function() {
|
||||
$('.slide, .btn-breadcrumb a:not(:last-child)').on('click', function() {
|
||||
$(this).addClass('active');
|
||||
if ($(this).hasClass('back')) {
|
||||
if ($(this).hasClass('back') || $(this).parent('.btn-breadcrumb').length) {
|
||||
store.set('slide', 'back');
|
||||
} else {
|
||||
store.set('slide', 'to');
|
||||
|
|
Loading…
Add table
Reference in a new issue