From 9c4da055a81a140701d4668a9c3fa8c632517c42 Mon Sep 17 00:00:00 2001 From: Andrei Sacuiu Date: Fri, 24 Mar 2017 16:39:01 +0100 Subject: [PATCH] cleanup --- js/viewer/viewer.js | 25 +++++++++---- lib/Controller/DocumentController.php | 54 +++++++++++++-------------- 2 files changed, 43 insertions(+), 36 deletions(-) diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index 9118bb24..8a0ae19e 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -124,15 +124,24 @@ var odfViewer = { $('#app-content #controls').addClass('hidden'); $('#app-content').append($iframe); - $.ajax({type: 'GET', url: OC.filePath('richdocuments', 'ajax', 'generate.php'), data: {id: context.$file.attr('data-id')}, async: false, success: function(result) { - if(result.status=="success"){ - var $chatroom = $('