Merge pull request #277 from owncloud/new-fileactions

Check for a new fileactions availability
This commit is contained in:
VicDeo 2014-06-13 18:33:42 +03:00
commit e37816348b

View File

@ -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'),
{},