From a364ac7af44e4914f84f87f5528cde66f06b300e Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Fri, 13 Jun 2014 15:53:30 +0300 Subject: [PATCH] Chack for a new fileactions availability --- js/viewer/viewer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index b82b6e78..80903082 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -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'), {},