|
|
@ -951,6 +951,13 @@ FileList.isFileNameValid = function (name) {
|
|
|
|
return true;
|
|
|
|
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() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
if (!OCA.Files) {
|
|
|
|
if (!OCA.Files) {
|
|
|
@ -993,6 +1000,10 @@ $(document).ready(function() {
|
|
|
|
$('.add-document').on('click', '.add-ods', documentsMain.onCreateODS);
|
|
|
|
$('.add-document').on('click', '.add-ods', documentsMain.onCreateODS);
|
|
|
|
$('.add-document').on('click', '.add-odp', documentsMain.onCreateODP);
|
|
|
|
$('.add-document').on('click', '.add-odp', documentsMain.onCreateODP);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OC.Upload._isReceivedSharedFile = function () {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var file_upload_start = $('#file_upload_start');
|
|
|
|
var file_upload_start = $('#file_upload_start');
|
|
|
|
if (typeof supportAjaxUploadWithProgress !== 'undefined' && supportAjaxUploadWithProgress()) {
|
|
|
|
if (typeof supportAjaxUploadWithProgress !== 'undefined' && supportAjaxUploadWithProgress()) {
|
|
|
|
file_upload_start.on('fileuploadstart', function(e, data) {
|
|
|
|
file_upload_start.on('fileuploadstart', function(e, data) {
|
|
|
|