aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-10-22 15:03:42 +0200
committerVincent Petry <vincent@nextcloud.com>2020-10-22 15:06:11 +0200
commit805676309bd298ce9e4fe5f973e718db51b7f2dc (patch)
tree88aeafba8565e31de23f5d728c5b8de8dd4d16cf /apps/files/js
parent872f03209cccd376c0be908581164f245e558070 (diff)
downloadnextcloud-server-805676309bd298ce9e4fe5f973e718db51b7f2dc.tar.gz
nextcloud-server-805676309bd298ce9e4fe5f973e718db51b7f2dc.zip
Bring back the restore share button
Fix disabled default file action to still use an anchor element, as this is used in many other places (and potentially apps). Adjusted anchor style to not look like it's clickable and added extras to make sure everything inside still looks clickable as before. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 936f907a324..35800c8d279 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1561,9 +1561,7 @@
"href": linkUrl
});
if (this._defaultFileActionsDisabled) {
- linkElem = $('<p></p>').attr({
- "class": "name"
- })
+ linkElem.addClass('disabled');
}
linkElem.append('<div class="thumbnail-wrapper"><div class="thumbnail" style="background-image:url(' + icon + ');"></div></div>');