Fix error in richdocuments
Ports https://github.com/owncloud/documents/pull/652 by @vicdeo to richdocuments
This commit is contained in:
Родитель
ccc483e8e8
Коммит
d6a412caac
|
@ -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) {
|
||||||
|
|
|
@ -4,7 +4,6 @@ style( 'richdocuments', 'style' );
|
||||||
script('richdocuments', 'share');
|
script('richdocuments', 'share');
|
||||||
script('richdocuments', 'documents');
|
script('richdocuments', 'documents');
|
||||||
script('files', 'file-upload');
|
script('files', 'file-upload');
|
||||||
script('files', 'jquery.iframe-transport');
|
|
||||||
script('files', 'jquery.fileupload');
|
script('files', 'jquery.fileupload');
|
||||||
?>
|
?>
|
||||||
<div id="documents-content">
|
<div id="documents-content">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче