Skip to content
Snippets Groups Projects
Commit 436d0223 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #9120 from owncloud/fileactions-filelistfallback

Fixed file actions fallback
parents da0e4b0a 502573eb
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,8 @@
display: function (parent, triggerEvent, fileList) {
if (!fileList) {
console.warn('FileActions.display() MUST be called with a OCA.Files.FileList instance');
// using default list instead, which could be wrong
fileList = OCA.Files.App.fileList;
}
this.currentFile = parent;
var self = this;
......@@ -162,7 +164,7 @@
event.data.actionFunc(file, {
$file: $tr,
fileList: fileList || OCA.Files.App.fileList,
fileList: fileList,
fileActions: self,
dir: $tr.attr('data-path') || fileList.getCurrentDirectory()
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment