From f17c3d0aa5c5a4c5a26f44badb123022b0767c78 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 19 Feb 2018 13:38:03 +0100 Subject: slx-fixes.js: Refine disabled style hack to not ruin btn-groups --- script/slx-fixes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/slx-fixes.js b/script/slx-fixes.js index 9cd93c05..a5864efb 100644 --- a/script/slx-fixes.js +++ b/script/slx-fixes.js @@ -43,8 +43,10 @@ $('.slx-decollapse').click(function () { $(this).siblings('.collapse').removeClass('collapse'); }); +// Show not-allowed cursor for disabled links (not in btn-group as it messes up the style) $('a.disabled').each(function() { var $this = $(this); + if ($this.parent().hasClass('btn-group')) return; var $hax = $('
'); $this.after($hax); $hax.append($this); -- cgit v1.2.3-55-g7522