From bbfa8d876aa92d6377c27bd79d1a5f0bb2110ead Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Wed, 13 Jul 2016 23:53:15 +0300 Subject: [PATCH] Fix upload --- js/documents.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/documents.js b/js/documents.js index 9de2211b..7a3d853b 100644 --- a/js/documents.js +++ b/js/documents.js @@ -673,6 +673,12 @@ FileList = FileList || {}; FileList.getCurrentDirectory = function(){ return $('#dir').val() || '/'; }; +FileList.findFile = function(fileName){ + fullPath = escapeHTML(FileList.getCurrentDirectory + '/' + fileName); + return !!$('.documentslist .document:not(.template,.progress) a[original-title="' + fullPath + '"]').length +}; +FileList.highlightFiles = function(){}; + $(document).ready(function() { documentsMain.docs = $('.documentslist').documentGrid(); @@ -695,6 +701,10 @@ $(document).ready(function() { $('.add-document').on('click', '.add', documentsMain.onCreate); + OC.Upload._isReceivedSharedFile = function () { + return false; + } + var file_upload_start = $('#file_upload_start'); if (typeof supportAjaxUploadWithProgress !== 'undefined' && supportAjaxUploadWithProgress()) { file_upload_start.on('fileuploadstart', function(e, data) {