aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/fileactions.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index ac3afba038d..8ce8eddb0b0 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -558,6 +558,20 @@
}
});
+ function objectValues(obj) {
+ var res = [];
+ for (var i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ res.push(obj[i]);
+ }
+ }
+ return res;
+ }
+ // polyfill
+ if (!Object.values) {
+ Object.values = objectValues;
+ }
+
var menuActions = Object.values(this.actions.all).filter(function (action) {
return action.type !== OCA.Files.FileActions.TYPE_INLINE;
});