Chack for a new fileactions availability
This commit is contained in:
parent
0fcdb8007b
commit
a364ac7af4
@ -109,7 +109,10 @@ var odfViewer = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if (typeof FileActions !== 'undefined') {
|
if ( typeof OCA !== 'undefined'
|
||||||
|
&& typeof OCA.Files !== 'undefined'
|
||||||
|
&& typeof OCA.Files.fileActions !== 'undefined'
|
||||||
|
) {
|
||||||
$.post(
|
$.post(
|
||||||
OC.filePath('documents', 'ajax', 'mimes.php'),
|
OC.filePath('documents', 'ajax', 'mimes.php'),
|
||||||
{},
|
{},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user