Chack for a new fileactions availability

This commit is contained in:
Victor Dubiniuk 2014-06-13 15:53:30 +03:00
Родитель 0fcdb8007b
Коммит a364ac7af4
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -109,7 +109,10 @@ var odfViewer = {
};
$(document).ready(function() {
if (typeof FileActions !== 'undefined') {
if ( typeof OCA !== 'undefined'
&& typeof OCA.Files !== 'undefined'
&& typeof OCA.Files.fileActions !== 'undefined'
) {
$.post(
OC.filePath('documents', 'ajax', 'mimes.php'),
{},