diff options
-rw-r--r-- | js/documents.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/documents.js b/js/documents.js index 7510682f..82bf8f27 100644 --- a/js/documents.js +++ b/js/documents.js @@ -518,7 +518,7 @@ var documentsMain = { $buttons.eq(1).text(t('richdocuments', 'Save')); }); } else if (msgId === 'UI_InsertGraphic') { - OC.dialogs.filepicker(t('files', 'Insert Graphic'), function(path, type) { + parent.OC.dialogs.filepicker(t('files', 'Insert Graphic'), function(path, type) { if (type === OC.dialogs.FILEPICKER_TYPE_CHOOSE) { var filename = path.substring(path.lastIndexOf('/') + 1); $.ajax({ |