aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC/msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/msg.js')
-rw-r--r--core/src/OC/msg.js42
1 files changed, 13 insertions, 29 deletions
diff --git a/core/src/OC/msg.js b/core/src/OC/msg.js
index 9be2b7fd322..655631a03ff 100644
--- a/core/src/OC/msg.js
+++ b/core/src/OC/msg.js
@@ -1,22 +1,6 @@
-/*
- * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
import $ from 'jquery'
@@ -32,7 +16,7 @@ export default {
/**
* Displayes a "Saving..." message in the given message placeholder
*
- * @param {Object} selector Placeholder to display the message in
+ * @param {object} selector Placeholder to display the message in
*/
startSaving(selector) {
this.startAction(selector, t('core', 'Saving …'))
@@ -41,7 +25,7 @@ export default {
/**
* Displayes a custom message in the given message placeholder
*
- * @param {Object} selector Placeholder to display the message in
+ * @param {object} selector Placeholder to display the message in
* @param {string} message Plain text message to display (no HTML allowed)
*/
startAction(selector, message) {
@@ -55,9 +39,9 @@ export default {
/**
* Displayes an success/error message in the given selector
*
- * @param {Object} selector Placeholder to display the message in
- * @param {Object} response Response of the server
- * @param {Object} response.data Data of the servers response
+ * @param {object} selector Placeholder to display the message in
+ * @param {object} response Response of the server
+ * @param {object} response.data Data of the servers response
* @param {string} response.data.message Plain text message to display (no HTML allowed)
* @param {string} response.status is being used to decide whether the message
* is displayed as an error/success
@@ -69,9 +53,9 @@ export default {
/**
* Displayes an success/error message in the given selector
*
- * @param {Object} selector Placeholder to display the message in
- * @param {Object} response Response of the server
- * @param {Object} response.data Data of the servers response
+ * @param {object} selector Placeholder to display the message in
+ * @param {object} response Response of the server
+ * @param {object} response.data Data of the servers response
* @param {string} response.data.message Plain text message to display (no HTML allowed)
* @param {string} response.status is being used to decide whether the message
* is displayed as an error/success
@@ -87,7 +71,7 @@ export default {
/**
* Displayes an success message in the given selector
*
- * @param {Object} selector Placeholder to display the message in
+ * @param {object} selector Placeholder to display the message in
* @param {string} message Plain text success message to display (no HTML allowed)
*/
finishedSuccess(selector, message) {
@@ -103,7 +87,7 @@ export default {
/**
* Displayes an error message in the given selector
*
- * @param {Object} selector Placeholder to display the message in
+ * @param {object} selector Placeholder to display the message in
* @param {string} message Plain text error message to display (no HTML allowed)
*/
finishedError(selector, message) {