From b9bc2417e7a8dc81feb0abe20359bedaf864f790 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 25 Sep 2019 18:19:42 +0200 Subject: Comply to eslint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/src/OC/msg.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'core/src/OC/msg.js') 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 . */ -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() } } -- cgit v1.2.3