summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-02-19 13:38:03 +0100
committerSimon Rettberg2018-02-19 13:38:03 +0100
commitf17c3d0aa5c5a4c5a26f44badb123022b0767c78 (patch)
tree7388049a32cf5d3873eb709621214bfa7dca0de0
parent[permissionmanager] Implement permissions: (diff)
downloadslx-admin-f17c3d0aa5c5a4c5a26f44badb123022b0767c78.tar.gz
slx-admin-f17c3d0aa5c5a4c5a26f44badb123022b0767c78.tar.xz
slx-admin-f17c3d0aa5c5a4c5a26f44badb123022b0767c78.zip
slx-fixes.js: Refine disabled style hack to not ruin btn-groups
-rw-r--r--script/slx-fixes.js2
1 files changed, 2 insertions, 0 deletions
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 = $('<div class="disabled-hack">');
$this.after($hax);
$hax.append($this);