cloudsuite: add FileList.findfile
This commit is contained in:
parent
6e8cf39068
commit
98a485d46f
@ -646,7 +646,25 @@ FileList.getCurrentDirectory = function(){
|
||||
FileList.highlightFiles = function(files, highlightFunction) {
|
||||
};
|
||||
|
||||
FileList.findFile = function(filename) {
|
||||
var documents = documentsMain.docs.documentGrid('option').documents;
|
||||
return _.find(documents, function(aFile) {
|
||||
return (aFile.name === filename);
|
||||
}) || false;
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
if (!OCA.Files) {
|
||||
OCA.Files = {};
|
||||
OCA.Files.App = {};
|
||||
OCA.Files.App.fileList = FileList;
|
||||
}
|
||||
|
||||
if (!OC.Share) {
|
||||
OC.Share = {};
|
||||
}
|
||||
|
||||
documentsMain.docs = $('.documentslist').documentGrid();
|
||||
documentsMain.overlay = $('<div id="documents-overlay" class="icon-loading"></div><div id="documents-overlay-below" class="icon-loading-dark"></div>').documentOverlay();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user