/** * Nextcloud - Ownpad * * This file is licensed under the Affero General Public License * version 3 or later. See the COPYING file. * * @author Olivier Tétard * @copyright Olivier Tétard , 2017 */ (function(OCA) { OCA.FilesOwnpad = { attach: function(fileList) { this._extendFileActions(fileList.fileActions); }, hide: function() { $('#ownpad').remove(); FileList.setViewerMode(false); // replace the controls with our own $('#app-content #controls').removeClass('hidden'); }, show: function(fileName, dirName) { var self = this; var $iframe; var viewer = OC.generateUrl('/apps/ownpad/?file={file}&dir={dir}', {file: fileName, dir: dirName}); $iframe = $('