Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #654 from owncloud/stable9-fix-upload
Browse files Browse the repository at this point in the history
[Stable9] Fix upload
  • Loading branch information
VicDeo authored Aug 9, 2016
2 parents 402dd3e + bbfa8d8 commit cb7559b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit cb7559b

Please sign in to comment.