summaryrefslogtreecommitdiffstats
path: root/core/src/OC/msg.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 18:19:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 17:16:09 +0200
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /core/src/OC/msg.js
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
downloadnextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz
nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/OC/msg.js')
-rw-r--r--core/src/OC/msg.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/core/src/OC/msg.js b/core/src/OC/msg.js
index 1d43b4375e7..e210f32bb14 100644
--- a/core/src/OC/msg.js
+++ b/core/src/OC/msg.js
@@ -21,7 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import $ from 'jquery';
+import $ from 'jquery'
/**
* A little class to manage a status field for a "saving" process.
@@ -36,8 +36,8 @@ export default {
*
* @param {Object} selector Placeholder to display the message in
*/
- startSaving: function (selector) {
- this.startAction(selector, t('core', 'Saving...'));
+ startSaving: function(selector) {
+ this.startAction(selector, t('core', 'Saving...'))
},
/**
@@ -46,12 +46,12 @@ export default {
* @param {Object} selector Placeholder to display the message in
* @param {string} message Plain text message to display (no HTML allowed)
*/
- startAction: function (selector, message) {
+ startAction: function(selector, message) {
$(selector).text(message)
.removeClass('success')
.removeClass('error')
.stop(true, true)
- .show();
+ .show()
},
/**
@@ -64,8 +64,8 @@ export default {
* @param {string} response.status is being used to decide whether the message
* is displayed as an error/success
*/
- finishedSaving: function (selector, response) {
- this.finishedAction(selector, response);
+ finishedSaving: function(selector, response) {
+ this.finishedAction(selector, response)
},
/**
@@ -78,11 +78,11 @@ export default {
* @param {string} response.status is being used to decide whether the message
* is displayed as an error/success
*/
- finishedAction: function (selector, response) {
- if (response.status === "success") {
- this.finishedSuccess(selector, response.data.message);
+ finishedAction: function(selector, response) {
+ if (response.status === 'success') {
+ this.finishedSuccess(selector, response.data.message)
} else {
- this.finishedError(selector, response.data.message);
+ this.finishedError(selector, response.data.message)
}
},
@@ -92,14 +92,14 @@ export default {
* @param {Object} selector Placeholder to display the message in
* @param {string} message Plain text success message to display (no HTML allowed)
*/
- finishedSuccess: function (selector, message) {
+ finishedSuccess: function(selector, message) {
$(selector).text(message)
.addClass('success')
.removeClass('error')
.stop(true, true)
.delay(3000)
.fadeOut(900)
- .show();
+ .show()
},
/**
@@ -108,10 +108,10 @@ export default {
* @param {Object} selector Placeholder to display the message in
* @param {string} message Plain text error message to display (no HTML allowed)
*/
- finishedError: function (selector, message) {
+ finishedError: function(selector, message) {
$(selector).text(message)
.addClass('error')
.removeClass('success')
- .show();
+ .show()
}
}