diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index e47e47d7f4..c323ff9b51 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -539,6 +539,23 @@ table td.selection { cursor: default !important; } +/* + * Make the disabled link look not like a link in file list rows + */ +#fileList a.name.disabled { + * { + cursor: default; + } + + a, a * { + cursor: pointer; + } + + &:focus { + background: none; + } +} + a.action > img { height: 16px; width: 16px; diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 5e6225a48e..e157b91b04 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1561,9 +1561,7 @@ "href": linkUrl }); if (this._defaultFileActionsDisabled) { - linkElem = $('
').attr({ - "class": "name" - }) + linkElem.addClass('disabled'); } linkElem.append('