diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-07 14:27:09 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-09-07 14:27:09 +0300 |
commit | d6a412caaccee7501b7030783fe4b3ebcd14ed28 (patch) | |
tree | 2574174515c54308bfebe62b575667f007cb05f2 /js | |
parent | ccc483e8e80d122ff1624e0b086f3558f6b279fd (diff) |
Fix error in richdocuments
Ports https://github.com/owncloud/documents/pull/652 by @vicdeo to richdocuments
Diffstat (limited to 'js')
-rw-r--r-- | js/documents.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/documents.js b/js/documents.js index aad8bfa2..82eea492 100644 --- a/js/documents.js +++ b/js/documents.js @@ -951,6 +951,13 @@ FileList.isFileNameValid = function (name) { return true; } +FileList.setViewerMode = function(){ +}; +FileList.findFile = function(fileName){ + fullPath = escapeHTML(FileList.getCurrentDirectory + '/' + fileName); + return !!$('.documentslist .document:not(.template,.progress) a[original-title="' + fullPath + '"]').length +} + $(document).ready(function() { if (!OCA.Files) { @@ -993,6 +1000,10 @@ $(document).ready(function() { $('.add-document').on('click', '.add-ods', documentsMain.onCreateODS); $('.add-document').on('click', '.add-odp', documentsMain.onCreateODP); + 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) { |