From 1b84de5eeab5b11ef5decb8cbb7607813c63dfd7 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 11 Apr 2022 16:05:13 +0200 Subject: [PATCH] related to #1609 when node has no children, arrow is gray and not clickable rather than invisible --- admin/themes/default/js/albums.js | 4 ++++ admin/themes/default/theme.css | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/admin/themes/default/js/albums.js b/admin/themes/default/js/albums.js index 0c9ad15b1..eae99aa96 100644 --- a/admin/themes/default/js/albums.js +++ b/admin/themes/default/js/albums.js @@ -51,6 +51,10 @@ $(document).ready(() => { .replace(/%id%/g, node.id))); } else { cont.find('.move-cat-order').addClass("notClickable"); + + cont.append($(toggler_close + .replace(/%content%/g, toggler) + .replace(/%id%/g, node.id))).addClass("disabledToggle"); } cont.append($(icon.replace(/%icon%/g, 'icon-grip-vertical-solid'))); diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index 7c8fc93f8..7a330b420 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -5891,6 +5891,12 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important; font-weight:600; } +.disabledToggle .move-cat-toogler{ + color: gray; + opacity: 0.5; + pointer-events: none; +} + /* album search */ .search-album {