diff options
-rw-r--r-- | script/slx-fixes.js | 7 | ||||
-rw-r--r-- | style/default.css | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/script/slx-fixes.js b/script/slx-fixes.js index 1ed71cb9..9cd93c05 100644 --- a/script/slx-fixes.js +++ b/script/slx-fixes.js @@ -41,4 +41,11 @@ if (history && history.replaceState && window && window.location && window.locat // Simple decollapse functionality for tables $('.slx-decollapse').click(function () { $(this).siblings('.collapse').removeClass('collapse'); +}); + +$('a.disabled').each(function() { + var $this = $(this); + var $hax = $('<div class="disabled-hack">'); + $this.after($hax); + $hax.append($this); });
\ No newline at end of file diff --git a/style/default.css b/style/default.css index 57f76f69..a9d45681 100644 --- a/style/default.css +++ b/style/default.css @@ -600,12 +600,22 @@ table.slx-ellipsis td { white-space: nowrap; } -div.disabled input, div.disabled label { - pointer-events: none; +div.disabled { cursor: not-allowed; } +div.disabled input, div.disabled label, div.disabled .btn { + pointer-events: none; +} + .input-group-addon > label { font-weight: normal; margin-bottom: inherit; +} + +div.disabled-hack { + cursor: not-allowed; + margin: 0; + padding: 0; + display: inline-block; }
\ No newline at end of file |