From 7e6581e7e67013902ca217a73535957c48a5635e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 21 Jul 2016 10:22:29 +0200 Subject: [PATCH] Fix couple of IDE warnings --- filemanager/js/app.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index a31f1a78c0..6a82a69e2a 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -1073,6 +1073,7 @@ app.classes.filemanager = AppJS.extend( * Method to close an opened document * * @param {object} _egwAction egw action object + * @param {function} _callback callback function gets called after close operation */ editor_close: function (_egwAction, _callback) { var self = this, @@ -1090,7 +1091,7 @@ app.classes.filemanager = AppJS.extend( window.close(); } callback.call(this); - } + }; // warn user about unsaved changes if (this.editor.isDocumentModified()) @@ -1139,13 +1140,15 @@ app.classes.filemanager = AppJS.extend( egw.open_link(egw.link('/index.php', { menuaction: 'filemanager.filemanager_ui.editor', path: template_url, - isNew: true, + isNew: true }), '', '800x600'); } }, /** * Method call for saving edited document + * + * @param {object} _egwAction egw action object */ editor_save: function (_egwAction) { var self = this, @@ -1233,7 +1236,7 @@ app.classes.filemanager = AppJS.extend( editor_file_operation: function (_params) { var ajaxObj = { - url: egw.webserverUrl+'/webdav.php?/home/'+egw.user('account_lid')+'/default.odt', + url: egw.webserverUrl+'/webdav.php?/home/'+egw.user('account_lid')+'/default.odt' }; jQuery.extend(ajaxObj, _params); switch (ajaxObj && ajaxObj.cmd) @@ -1258,6 +1261,9 @@ app.classes.filemanager = AppJS.extend( /** * Function to check wheter selected file is editable. ATM only .odt is supported. * + * @param {object} _egwAction egw action object + * @param {object} _senders object of selected row + * * @returns {boolean} returns true if is editable otherwise false */ isEditable: function (_egwAction, _senders) {