aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js4
-rw-r--r--apps/files/js/filelist.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 4525da876e3..283118cd327 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -720,10 +720,10 @@
},
mime: 'all',
order: -23,
- iconClass: function(filename, context) {
+ icon: function(filename, context) {
var locked = context.$file.data('locked');
if (!locked) {
- return 'icon-rename';
+ return OC.imagePath('files', 'computer.svg')
}
},
permissions: OC.PERMISSION_UPDATE,
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index fff704b9283..2761c3a62b2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2811,7 +2811,7 @@
var scheme = 'nc://';
var command = 'open';
var uid = OC.getCurrentUser().uid;
- var url = scheme + command + '/' + uid + '@' + window.location.host + (window.location.port ? `:${window.location.port}` : '') + OC.encodePath(path);
+ var url = scheme + command + '/' + uid + '@' + window.location.host + OC.encodePath(path);
window.location.href = url;
},