diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index ac3afba038..8ce8eddb0b 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; });